pzx-web-api/Dockerfile
BryantHe 0daad7a229
All checks were successful
continuous-integration/drone/push Build is passing
refactor: move to docker swarm
2023-12-09 17:35:13 +08:00

10 lines
282 B
Docker

FROM python:3.11-slim
# 拷贝项目文件
COPY . /app
# 设置工作路径
WORKDIR /app
# 安装依赖
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"]