容器错误日志为:
python3: can’t open file ‘/code/package/manage.py’: [Errno 2] No such file or directory
项目结构如下:(package是python的项目资源代码文件)
===============================================================
Dockerfile文件内容为:
#基于的基础镜像
FROM python:3.7
#代码添加到code文件夹
ADD ./package /code
WORKDIR /code
RUN pip3 freeze > requirements.txt
RUN pip3 install -r requirements.txt
CMD [“python3”, “/package/manage.py”]
#ENTRYPOINT exec python /code/package/manage.py