我在Dockerfile中使用了下面的代码,它成功地构建了,但是它没有运行。我怎样才能让它工作?在FROM python:3.5-slim
COPY . /app
WORKDIR /app
RUN apt-get update
RUN apt-get -y upgrade
RUN pip install -r requirements.txt
ENTRYPOINT ["python"]
CMD ["app.py"]
错误:
^{pr2}$
使用的Docker代码:docker build -t flask-sample-one:latest .
以及docker run -d -p 5000:5000 flask-sample-one
需求文件:opencv-contrib-python-headless==3.4.3.18
Click==7.0
cloudpickle==0.6.1
cycler==0.10.0
dask==0.20.1
decorator==4.3.0
Flask==1.0.2
imutils==0.5.1
itsdangerous==1.1.0
Jinja2==2.10
kiwisolver==1.0.1
MarkupSafe==1.1.0
networkx==2.2
numpy==1.15.4
Pillow==5.3.0
pyparsing==2.3.0
python-dateutil==2.7.5
PyWavelets==1.0.1
scikit-image==0.14.1
scipy==1.1.0
six==1.11.0
toolz==0.9.0
Werkzeug==0.14.1