This will launch a docker container with Flask installed and will start the web server. To run a Flask App with this web server, volume mount the app location as below. Make sure the app file name is 'app.py'.
docker container run -itd -v /local/code:/home/flaskapp -p 5000:5000 --name mycontainer awsacdev/flaskapp:1.1
Below are the components installed in the container:
This also exposes 5000 port so the Flask app can be accessed as:
http://:5000
Content type
Image
Digest
Size
143.9 MB
Last updated
about 7 years ago
docker pull awsacdev/flaskapp