This is an app from the "Flask Web Development" book. This read me is detailing the steps for building it on a Mac. (The book has instructions for Linux/Ubuntu and some notes for Windows, but is not always working for me.)
python3 -m venv env-name
source env-name/bin/activate
pip install flask
- Debug is optional and provides hot reloading
- Runs on localhost:5000 by default
export FLASK_APP=hello.py
export FLASK_DEBUG=1
flask run
- Runs on localhost:5000 (or whatever port you map it to in the run command)
docker build -t friendly-name .
docker run -p 5000:80 friendly-name