refactor: move to docker swarm
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-09 17:35:13 +08:00
parent f3c980f8f7
commit 0daad7a229
9 changed files with 72 additions and 100 deletions

View File

@@ -1,6 +1,10 @@
FROM python:3.11
RUN python3 -m pip uninstall -y chassis
# 拷贝依赖
COPY requirements.txt .
FROM python:3.11-slim
# 拷贝项目文件
COPY . /app
# 设置工作路径
WORKDIR /app
# 安装依赖
RUN python3 -m pip install -i https://mirrors.cloud.tencent.com/pypi/simple --trusted-host=mirrors.cloud.tencent.com -r requirements.txt
RUN python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com -r requirements.txt
# 启动时运行命令
CMD ["sh", "docker-deploy.sh"]