🎨 优化docker-compose脚本

This commit is contained in:
李寻欢 2024-01-05 09:48:04 +08:00
parent 3f0bdd7f3b
commit 5147ac48a2
3 changed files with 61 additions and 11 deletions

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
root = true
[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.md]
indent_size = 4
trim_trailing_whitespace = false
eclint_indent_style = unset
[Dockerfile]
indent_size = 4

View File

@ -18,9 +18,9 @@ COPY install-wechat.sh install-wechat.sh
RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && \ RUN bash -c 'nohup /entrypoint.sh 2>&1 &' && \
sleep 10 && \ sleep 10 && \
sudo chown app:app WeChatSetup.exe && \ sudo chown app:app WeChatSetup.exe && \
./install-wechat.sh && \ ./install-wechat.sh && \
rm -rf WeChatSetup.exe && \ rm -rf WeChatSetup.exe && \
rm -rf install-wechat.sh rm -rf install-wechat.sh
# 下载wxhelper.dll # 下载wxhelper.dll
ADD ${WXHELPER_URL} wxhelper.dll ADD ${WXHELPER_URL} wxhelper.dll

View File

@ -1,11 +1,44 @@
version: "3.3" version: "3.3"
services: services:
wxhelper-docker: 39825-v2:
build: . build:
restart: unless-stopped context: .
container_name: wxhelper-docker dockerfile: Dockerfile
tty: true args:
ports: - WECHAT_URL=https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.8.25/WeChatSetup-3.9.8.25.exe
- 8080:8080 - WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.8.25-v2/wxhelper.dll
- 19088:19088 image: wxhelper-docker:3.9.8.25-v2
container_name: wxhelper-docker
restart: unless-stopped
tty: true
ports:
- 8080:8080
- 19088:19088
39581-v11:
build:
context: .
dockerfile: Dockerfile
image: wxhelper-docker:3.9.5.81-v11
container_name: wxhelper-docker
restart: unless-stopped
tty: true
ports:
- 8080:8080
- 19088:19088
39223-v9:
build:
context: .
dockerfile: Dockerfile
args:
- WECHAT_URL=https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.2.23/WeChatSetup-3.9.2.23.exe
- WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.2.23-v9/wxhelper.dll
image: wxhelper-docker:3.9.2.23-v9
container_name: wxhelper-docker
restart: unless-stopped
tty: true
ports:
- 8080:8080
- 19088:19088