🐳 优化Dockerfile文件,支持一个脚本打包多个微信版本的镜像
This commit is contained in:
parent
a2004d933f
commit
3f0bdd7f3b
21
Dockerfile
21
Dockerfile
@ -1,15 +1,20 @@
|
||||
FROM furacas/wine-vnc-box:latest
|
||||
|
||||
# 根据传入参数安装微信和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
|
||||
|
||||
WORKDIR /home/app/.wine/drive_c
|
||||
|
||||
# 加载注入器
|
||||
ADD https://github.com/furacas/DllInjector/releases/download/v1.4.0/DllInjector64.exe DllInjector.exe
|
||||
|
||||
RUN sudo chown app:app DllInjector.exe
|
||||
|
||||
ADD https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.5.81/WeChatSetup-3.9.5.81.exe WeChatSetup.exe
|
||||
# 下载微信
|
||||
ADD ${WECHAT_URL} WeChatSetup.exe
|
||||
|
||||
# 安装微信
|
||||
COPY install-wechat.sh install-wechat.sh
|
||||
|
||||
RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && \
|
||||
sleep 10 && \
|
||||
sudo chown app:app WeChatSetup.exe && \
|
||||
@ -17,15 +22,9 @@ RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && \
|
||||
rm -rf WeChatSetup.exe && \
|
||||
rm -rf install-wechat.sh
|
||||
|
||||
|
||||
ADD https://github.com/ttttupup/wxhelper/releases/download/3.9.5.81-v10/wxhelper.dll wxhelper.dll
|
||||
|
||||
# 下载wxhelper.dll
|
||||
ADD ${WXHELPER_URL} wxhelper.dll
|
||||
RUN sudo chown app:app wxhelper.dll
|
||||
|
||||
|
||||
COPY cmd.sh /cmd.sh
|
||||
|
||||
|
||||
CMD ["/cmd.sh"]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user