Skip to content

Minimal version of a flask server app on docker

Notifications You must be signed in to change notification settings

nynif/docker_flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask server app on docker

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

To run this project

git clone https://github.com/nynif/docker_flask.git
cd docker_flask

docker running version

docker compose up

On your local machine, the output file will be in app_local/app/output/ folder

local running version

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

Source

About

Minimal version of a flask server app on docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published