mirror of
https://github.com/tom-snow/docker-ComWechat.git
synced 2025-01-07 21:45:51 +08:00
reduce image size
This commit is contained in:
parent
e2b33a3eef
commit
84882a3b18
43
Dockerfile
43
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM docker.io/zixia/wechat:3.3.0.115
|
||||
FROM zixia/wine:6.0
|
||||
|
||||
USER root
|
||||
WORKDIR /
|
||||
@ -8,46 +8,37 @@ ENV WINEPREFIX=/home/user/.wine \
|
||||
LC_ALL=zh_CN.UTF-8 \
|
||||
DISPLAY=:5 \
|
||||
VNCPASS=YourSafeVNCPassword \
|
||||
COMWECHAT=https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.0.5/3.7.0.30-0.0.5.zip
|
||||
COMWECHAT=https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.1.1-pre/3.7.0.30-0.1.1-pre.zip
|
||||
|
||||
# 提示 vnc 使用的端口, dll 的端口自行映射
|
||||
EXPOSE 5905
|
||||
|
||||
|
||||
RUN apt update && \
|
||||
apt --no-install-recommends install wget winbind samba tigervnc-standalone-server tigervnc-common openbox -y && \
|
||||
wget --no-check-certificate -O /bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64"
|
||||
|
||||
|
||||
COPY wine/simsun.ttc /home/user/.wine/drive_c/windows/Fonts/simsun.ttc
|
||||
COPY wine/微信.lnk /home/user/.wine/drive_c/users/Public/Desktop/微信.lnk
|
||||
COPY wine/system.reg /home/user/.wine/system.reg
|
||||
COPY wine/user.reg /home/user/.wine/user.reg
|
||||
COPY wine/userdef.reg /home/user/.wine/userdef.reg
|
||||
apt --no-install-recommends install wget winbind tigervnc-standalone-server tigervnc-common openbox \
|
||||
mesa-utils \
|
||||
procps \
|
||||
pev \
|
||||
pulseaudio-utils -y
|
||||
|
||||
ADD wine/simsun.ttc /home/user/.wine/drive_c/windows/Fonts/simsun.ttc
|
||||
ADD wine/微信.lnk /home/user/.wine/drive_c/users/Public/Desktop/微信.lnk
|
||||
ADD wine/system.reg wine/user.reg wine/userdef.reg /home/user/.wine/
|
||||
ADD WeChatHook.exe run.py /
|
||||
|
||||
# COPY wine/Tencent.zip /Tencent.zip
|
||||
RUN wget --no-check-certificate -O /Tencent.zip "https://github.com/tom-snow/docker-ComWechat/releases/download/v0.2_wc3.7.0.30/Tencent.zip"
|
||||
|
||||
# COPY ComWeChatRobot/Release/socket /socket
|
||||
COPY WeChatHook.exe /WeChatHook.exe
|
||||
|
||||
COPY run.py /run.py
|
||||
# https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.7.0.30/WeChatSetup-3.7.0.30.exe
|
||||
# COPY WeChatSetup-3.7.0.30.exe WeChatSetup.exe
|
||||
|
||||
|
||||
RUN chmod a+x /bin/dumb-init && \
|
||||
RUN wget --no-check-certificate -O /Tencent.zip "https://github.com/tom-snow/docker-ComWechat/releases/download/v0.2_wc3.7.0.30/Tencent.zip" && \
|
||||
wget --no-check-certificate -O /bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64" && \
|
||||
mkdir -p "/home/user/WeChat Files" "/home/user/.wine/drive_c/users/user/Application Data" && \
|
||||
chmod a+x /bin/dumb-init && \
|
||||
chmod a+x /run.py && \
|
||||
rm -rf "/home/user/.wine/drive_c/Program Files/Tencent/" && \
|
||||
unzip Tencent.zip && \
|
||||
cp -rf /wine/Tencent "/home/user/.wine/drive_c/Program Files/" && \
|
||||
mv wine/Tencent "/home/user/.wine/drive_c/Program Files/" && \
|
||||
chown root:root -R /home/user/.wine && \
|
||||
rm -rf /wine/Tencent Tencent.zip && \
|
||||
apt autoremove -y && \
|
||||
apt clean && \
|
||||
rm -fr /tmp/*
|
||||
|
||||
rm -rf wine Tencent.zip /tmp/*
|
||||
|
||||
ENTRYPOINT [ "/bin/dumb-init" ]
|
||||
CMD ["/run.py", "start"]
|
||||
|
Loading…
Reference in New Issue
Block a user