This project is very minimal but show how to use docker to build a flask server.
- we use some library to show how to use the requirement.txt file
- we output a file to show how to use binding volumes
git clone https://github.com/nynif/docker_flask.git
cd docker_flask
docker compose up
On your local machine, the output file will be in app_local/app/output/ folder
python -m venv .env
source .env/bin/activate
pip install -r app_local/requirements.txt
python -m flask --app app_local/app.py run
The output file will be in app/output/ folder