Flask Docker image
Flask Docker image powered by
Python 3.6.0, with nginx and gunicorn. It is
aimed at a production use.
- Create a Dockerfile in the root of your project, starting with :
- Create a
requirements.txtfile containing your dependencies.
Note: you must have a file called
app.py at the root of your project
app variable containing the Flask object.
Running the project
docker build -t myapp . docker run -d -P myapp
When you want to run the project (or update it), you just have to re-do these
- don't forget to check out the
- everything in the folder
staticis served by nginx.