Exemplo de criação de container rodando uma aplicação Flask
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
app.py
requirements.txt

README.md

Flask dockerize example

Requirements

  • Python 3.x
  • Docker

Run local

pip install -r requirements.txt
FLASK_APP=app.py flask run

Build container

docker build -t flask-example:0.0.1 .

Run container

docker run --rm -d -p 8080:5000 flask-example:0.0.1