Problem scenario
You want to use Flask inside a Docker container. You want to build your own image for the Docker container. How do you create your own Dockerfile to create a Flask application?
Solution
Prerequisite
Install Docker. See this posting if you need directions.
Procedures
1. Create a Dockerfile with the following content (you may want to replace “16.04” with “latest” and if you want to change the location of where the .py file is,
…
Continue reading “How Do You Create Your Own Dockerfile to Create a Flask Application?”