Public Repository

Last pushed: a year ago
Short Description
Docker image to test a Python Flask website
Full Description

Usage

Create a Dockerfile inside your application directory containing the following

FROM shengis/flask:onbuild
# your main page
CMD ["app.py"]

Don't forget to use app.run(host="0.0.0.0") to make your website visible from outside of the docker.

Build your application

$ docker build -t user/test .

Then run it !

$ docker run -d -p 5000:5000 --image test user/test

Port 5000 is automatically exposed

Dockerfile

https://github.com/shengis/docker-flask

Docker Pull Command
Owner
shengis

Comments (0)