Closed rainzoo closed 10 months ago
Thanks for sharing the issue. It appears you may have selected the default values when running docker init
. The sample app uses flask and requires a different command as specified in the example at https://docs.docker.com/language/python/containerize/#initialize-docker-assets
It's an easy thing to overlook and we should probably call it out better in the documentation. Closing this as it's not an issue with the sample app, but an issue within the docs.
Following the Python docker tutorial: https://docs.docker.com/language/python/develop/#add-a-local-database-and-persist-data
docker compose up --build
failed with the error:The
requirements.txt
file does not includegunicorn
whichDockerfile
expects:Please add
gunicorn
to the requirements.txt