[英]Docker python3: can't find '__main__' module
When I run 当我跑步
docker-compose up --build
docker-compose up --build
I get the following error: 我收到以下错误:
web_1 | /opt/conda/bin/python3: can't find '__main__' module in 'glm-plotter'
glm-plotter/glm-plotter.py: GLM绘图仪/ glm-plotter.py:
...
if __name__ == "__main__":
app.secret_key = 'B0er23j/4yX R~XHH!jmN]LWX/,?Rh'
app.run()
Dockerfile Dockerfile
FROM continuumio/miniconda3
RUN apt-get update && apt-get install -y \
libpq-dev \
build-essential
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
ADD . /code
WORKDIR /code
RUN pip3 install -r requirements.txt
RUN cd glm-plotter
RUN ls glm-plotter
CMD ["python3", "glm-plotter"]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.