Sample Docker container for a Python 3 Flask based application with minimal footprint.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Feb 19, 2017
.travis.yml Consistified names for first repo upload. Feb 19, 2017
Dockerfile Consistified names for first repo upload. Feb 19, 2017
LICENSE Initial commit Feb 19, 2017
Makefile Dedicated goal for inspect vs. shell. Feb 19, 2017
README.md Added container badges (thx to microbadger). Feb 19, 2017
app.py Get it rolling. Feb 19, 2017
requirements.txt Get it rolling. Feb 19, 2017

README.md

python3-alpine-flask-docker Build Status Image Info

Sample Docker container for a Python 3 Flask based application with minimal footprint.

Based on "standard" Python 3 Docker image making use of Alpine Linux, see https://hub.docker.com/_/python/

Build Docker image

Generate docker image:

make build

Run Docker container

Spin up a container based on this docker image:

make run

Now you should be able to open http://0.0.0.0:5000 and see the demo Flask app returning a friendly Hello page.

If you use docker machine (on Mac OS X or Windows) please consult the docker inspect result to get the IP of the host machine (see make inspect).