Skip to content

About

DockerFile for simple Python app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Flask app

Simple web app based on Flask framework.

изображение

Why Flask?

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.

Flask and Docker

The repository contain Dockerfile in order to build and run Flask app in Docker container in any environment / OS.

How to RUN

  1. Choose your distro (alpine / debian bullseye)
  2. Run this:
docker build -f CHOSEN_DISTRO_FILE --build-arg PYTHON_VERSION=$PYTHON_VERSION -t flask_app .
docker run -d -p 5000:5000 flask_app

Example of running (if you want alpine python image with python3.9)

docker build -f Dockerfile --build-arg PYTHON_VERSION=3.9 -t flask_app .
docker run -d -p 5000:5000 flask_app

Example of running (if you want debian bullseye python image with default python3.10)

docker build -f Dockerfile.debian -t flask_app .
docker run -d -p 5000:5000 flask_app

About

DockerFile for simple Python app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages