-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
53 lines (38 loc) · 1.78 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM docker.io/zixia/wechat:3.3.0.115
USER root
WORKDIR /
ENV WINEPREFIX=/home/user/.wine \
LANG=zh_CN.UTF-8 \
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
# 提示 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
# 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 && \
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/" && \
chown root:root -R /home/user/.wine && \
rm -rf /wine/Tencent Tencent.zip && \
apt autoremove -y && \
apt clean && \
rm -fr /tmp/*
ENTRYPOINT [ "/bin/dumb-init" ]
CMD ["/run.py", "start"]