jeammyb / flask-app

Flask application sample and its docker image definition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-app

Flask application sample and its docker image definition.

Run application locally

Go to the main folder and execute the following command:

python app.py

Run application inside a Docker container

Build Docker image:

make build

Run container:

make run

To download the image and run container:

docker container run -d -p 5000:5000 --name flask jeammyb/flask-app:latest

URL Examples

http://localhost:5000

Or

Format: http://localhost:5000/hello/{name}

http://localhost:5000/hello/jeammy

About

Flask application sample and its docker image definition.

License:GNU General Public License v3.0


Languages

Language:Python 34.3%Language:Makefile 25.1%Language:HTML 24.5%Language:Dockerfile 16.2%