Open poundifdef opened 3 months ago
Is there any issue using Poetry with Gunicorn? Negates the need for a requirements.txt and manages python packages for us.
Also the default docker part 2 build uses python-slim which is missing several core python features that Flask-SQAlchemy needs.
The generated Dockerfile for flask should have a different CMD.
Right now it runs python3 -m flask run. This is incorrect. Flask warns about this in their docs:
When you look at the fly logs, it also emits a warning:
I’d propose the following changes:
This will do the following:
requirements.txt
Alternatively, you could look for gunicorn in requirements.txt and add if it’s missing.