编写Dockerfile
将Dcokerfile文件置于项目根目录下,文件内容如下
FROM python:3.7 WORKDIR ./docker_demo ADD . . RUN pip install -r requirements.txt CMD ["python", "./src/main.py"]
标签:文件,python,demo,CMD,根目录,docker From: https://www.cnblogs.com/qiaoqifa/p/17645884.html
将Dcokerfile文件置于项目根目录下,文件内容如下
FROM python:3.7 WORKDIR ./docker_demo ADD . . RUN pip install -r requirements.txt CMD ["python", "./src/main.py"]
标签:文件,python,demo,CMD,根目录,docker From: https://www.cnblogs.com/qiaoqifa/p/17645884.html