I am practicing Docker with https://courses.cognitiveclass.ai/ and I tried to run a Dockerfile
with the following content.
FROM python:3.6.1-alpine RUN pip install flask CMD ["python","app.py"] COPY app.py /app.py
The command I used to run Dockerfile
sudo docker image build -t python-hello-world .
when I executed this it was completing only 1/5 step and 2/5 step was failing with following error s.
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dlih6aks/MarkupSafe/ You are using pip version 9.0.1, however version 21.2.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. The command '/bin/sh -c pip install flask' returned a non-zero code: 1
Do I need to add any changes to the Dockerfile
?