In this article you'll learn how to run a small flask application in a docker container.
Let's start by creating the python application
./app.py
Then create the template file
./templates/layout.html
And finaly create the docker file for our application
./docker/flask/Dockerfile
To build the container, run the following command:
Run the container
Then open the url in your browser: http://localhost:5000
Enjoy!