Answers for "flask docker"

5

flask docker

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" ]
Posted by: Guest on July-05-2020
0

docker flask

$ docker run -p 8000:8000 -it python:3.7-slim python3 -m http.server --bind 0.0.0.0
Posted by: Guest on August-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language