2023-10-27 14:08:35 +08:00
|
|
|
FROM furacas/wine-vnc-box:latest
|
|
|
|
|
2024-01-05 09:19:51 +08:00
|
|
|
# 根据传入参数安装微信和wxhelper.dll
|
|
|
|
ARG WECHAT_URL=https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.5.81/WeChatSetup-3.9.5.81.exe
|
|
|
|
ARG WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.5.81-v11/wxhelper.dll
|
|
|
|
|
2023-10-27 14:08:35 +08:00
|
|
|
WORKDIR /home/app/.wine/drive_c
|
|
|
|
|
2024-01-05 09:19:51 +08:00
|
|
|
# 加载注入器
|
2023-10-27 14:08:35 +08:00
|
|
|
ADD https://github.com/furacas/DllInjector/releases/download/v1.4.0/DllInjector64.exe DllInjector.exe
|
2024-01-15 14:42:17 +08:00
|
|
|
RUN sudo chown app:app DllInjector.exe && sudo chmod a+x DllInjector.exe
|
2023-10-27 14:08:35 +08:00
|
|
|
|
2024-01-05 09:19:51 +08:00
|
|
|
# 下载微信
|
|
|
|
ADD ${WECHAT_URL} WeChatSetup.exe
|
2024-01-15 14:42:17 +08:00
|
|
|
RUN sudo chown app:app WeChatSetup.exe && sudo chmod a+x WeChatSetup.exe
|
|
|
|
RUN ls -lah
|
2023-10-27 14:08:35 +08:00
|
|
|
|
2024-01-05 09:19:51 +08:00
|
|
|
# 安装微信
|
2023-10-27 14:08:35 +08:00
|
|
|
COPY install-wechat.sh install-wechat.sh
|
2024-01-15 14:35:40 +08:00
|
|
|
RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && sleep 10
|
|
|
|
RUN sudo apt install -y net-tools
|
2024-01-15 14:42:17 +08:00
|
|
|
RUN ./install-wechat.sh
|
2024-01-15 14:35:40 +08:00
|
|
|
RUN rm -rf WeChatSetup.exe && rm -rf install-wechat.sh
|
2023-10-27 14:08:35 +08:00
|
|
|
|
2024-01-05 09:19:51 +08:00
|
|
|
# 下载wxhelper.dll
|
|
|
|
ADD ${WXHELPER_URL} wxhelper.dll
|
2023-10-27 14:08:35 +08:00
|
|
|
RUN sudo chown app:app wxhelper.dll
|
|
|
|
|
|
|
|
COPY cmd.sh /cmd.sh
|
2024-01-05 09:19:51 +08:00
|
|
|
CMD ["/cmd.sh"]
|