FROM python:alpine3.7
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt # Write Flask in this file
EXPOSE 5001
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]
$ docker run -p 8000:8000 -it python:3.7-slim python3 -m http.server --bind 0.0.0.0