Dockerfile 428 B

12345678910111213141516
  1. # 拉取镜像
  2. FROM python:3.8.10
  3. # 切换工作目录
  4. WORKDIR /app
  5. # add files
  6. COPY . .
  7. # 安装项目依赖
  8. RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
  9. RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  10. RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --root-user-action=ignore
  11. # 启动参数
  12. CMD ["python", "build_excavate.py", "10"]