refactor: move to docker swarm
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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"]
|
Reference in New Issue
Block a user