This example app builds a very simple flask application packaged as a container image. Notice the /app/run.sh
shell script that starts gunicorn and points it at the code contained in /app/application.py
.
Follow the instructions below to build and run the application.
- Build your container locally:
docker build -t flask-app-container:latest .
- Run your container locally:
docker run -it -p 8000:8000 flask-app-container:latest