This commit is contained in:
parent
1e9024b64f
commit
60df716905
19
Dockerfile
19
Dockerfile
@ -1,5 +1,8 @@
|
|||||||
FROM lxh01/wine-vnc:latest
|
FROM lxh01/wine-vnc:latest
|
||||||
|
|
||||||
|
# 清理环境
|
||||||
|
RUN sudo rm -rf /tmp/.X0-lock
|
||||||
|
|
||||||
# 根据传入参数安装微信和wxhelper.dll
|
# 根据传入参数安装微信和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 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
|
ARG WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.5.81-v11/wxhelper.dll
|
||||||
@ -16,19 +19,19 @@ RUN sudo chown app:app DllInjector.exe && sudo chmod a+x DllInjector.exe
|
|||||||
# 下载微信
|
# 下载微信
|
||||||
ADD ${WECHAT_URL} WeChatSetup.exe
|
ADD ${WECHAT_URL} WeChatSetup.exe
|
||||||
RUN sudo chown app:app WeChatSetup.exe && sudo chmod a+x WeChatSetup.exe
|
RUN sudo chown app:app WeChatSetup.exe && sudo chmod a+x WeChatSetup.exe
|
||||||
RUN ls -lah
|
|
||||||
|
|
||||||
# 安装微信
|
|
||||||
COPY install-wechat.sh install-wechat.sh
|
|
||||||
# RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && sleep 10 && sudo netstat -ntlp
|
|
||||||
RUN sudo netstat -ntlp
|
|
||||||
RUN sudo chmod a+x install-wechat.sh && ./install-wechat.sh
|
|
||||||
RUN rm -rf WeChatSetup.exe && rm -rf install-wechat.sh
|
|
||||||
|
|
||||||
# 下载wxhelper.dll
|
# 下载wxhelper.dll
|
||||||
ADD ${WXHELPER_URL} wxhelper.dll
|
ADD ${WXHELPER_URL} wxhelper.dll
|
||||||
RUN sudo chown app:app wxhelper.dll
|
RUN sudo chown app:app wxhelper.dll
|
||||||
|
|
||||||
|
RUN ls -lah
|
||||||
|
|
||||||
|
# 安装微信
|
||||||
|
COPY install-wechat.sh install-wechat.sh
|
||||||
|
RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && sleep 10 && sudo netstat -ntlp
|
||||||
|
RUN sudo chmod a+x install-wechat.sh && ./install-wechat.sh
|
||||||
|
RUN rm -rf WeChatSetup.exe && rm -rf install-wechat.sh
|
||||||
|
|
||||||
EXPOSE 5900 19088
|
EXPOSE 5900 19088
|
||||||
|
|
||||||
COPY cmd.sh /cmd.sh
|
COPY cmd.sh /cmd.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user