You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 369 B

1234567891011
  1. #基于的基础镜像
  2. FROM python:3.6
  3. #代码添加到code文件夹,后面可以通过进入容器中看的
  4. ADD ./ /code
  5. # 设置code文件夹是工作目录
  6. WORKDIR /code
  7. # 安装支持
  8. RUN pip install -r requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  9. #当容器启动时,使用python3执行指定路径的py脚本
  10. CMD ["python", "/code/WebAPI.py"]