Browse Source

Merge pull request 'refactor: 🛠️ 简化 Docker 容器运行命令,移除多余换行和注释' (#26) from cjl-dev into master

Reviewed-on: http://120.26.116.243:3000/root/model-lab/pulls/26
master
chenjiale 1 month ago
parent
commit
2779462340
  1. 12
      .drone.yml

12
.drone.yml

@ -33,20 +33,10 @@ steps:
- echo "=== RUN STAGE PWD ==="
- pwd
- ls -l
# 确保 config.py 一定是文件(避免被误识别为目录)
- test -f $(pwd)/config.py || (echo "config.py not found" && exit 1)
- docker stop alert-python || true
- docker rm alert-python || true
- docker run -d --restart always \
--name alert-python \
--network alert-net \
-p 8082:8082 \
-v $(pwd)/config.py:/opt/alert/model-lab/config.py:ro \
-v $(pwd)/config.py:/app/config.py:ro \
alert-python:latest
- docker run -d --restart always --name alert-python --network alert-net -p 8082:8082 -v $(pwd)/config.py:/opt/alert/model-lab/config.py:ro -v $(pwd)/config.py:/app/config.py:ro alert-python:latest
volumes:
- name: dockersock

Loading…
Cancel
Save