It would be safer for the docker image to have flask start in production mode and manually set it to dev mode (using ENV) when developing.
What needs to be done to make it actually production server?
If I specify FLASK_ENV=production poetry run flask run --host=0.0.0.0 --port=5000
then I get this response:
* Serving Flask app "elpis"
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
It would be safer for the docker image to have flask start in production mode and manually set it to dev mode (using ENV) when developing.
What needs to be done to make it actually production server?
If I specify
FLASK_ENV=production poetry run flask run --host=0.0.0.0 --port=5000
then I get this response:Is that sufficient? Ignore the WARNING?