Simple web app based on Flask framework.
Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. It gives developers flexibility and is an accessible framework for new developers because you can build a web application quickly using only a single Python file. Flask is also extensible and doesn’t force a particular directory structure or require complicated boilerplate code before getting started.
The repository contain Dockerfile in order to build and run Flask app in Docker container in any environment / OS.
- Choose your distro (alpine / debian bullseye)
- Run this:
docker build -f CHOSEN_DISTRO_FILE --build-arg PYTHON_VERSION=$PYTHON_VERSION -t flask_app .
docker run -d -p 5000:5000 flask_appdocker build -f Dockerfile --build-arg PYTHON_VERSION=3.9 -t flask_app .
docker run -d -p 5000:5000 flask_appdocker build -f Dockerfile.debian -t flask_app .
docker run -d -p 5000:5000 flask_app