How to Serve Flask inside container in production How to Serve Flask inside container in production flask flask

How to Serve Flask inside container in production


You can use the gunicorn for falsk and write the docker file and create docker images for example

FROM python:3.6ADD . /appWORKDIR /appRUN pip install flask gunicornEXPOSE 8000CMD ["gunicorn", "-b", "0.0.0.0:8000", "app"]