pzx-web-api/Dockerfile

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"]