A debian-based docker container for running Flask program.
- Clone this project
- use
docker build -t foo .
, wherefoo
is your image name - Create a new container by the following command:
docker run -d -p 5000:5000 -v /path/to/your/app:/app foo
- Enjoy
Use the following command:
- Python Dev Server
docker run -d -p 5000:5000 -v /path/to/your/app:/app xosadmin/docker-flask:dev
- uWSGI Server (Experimental, default parameters):
docker run -d -p 5000:5000 -v /path/to/your/app:/app xosadmin/docker-flask:uwsgi-test
- uWSGI Server (Experimental, custom config
uwsgi.ini
):
docker run -d -p <Your port> -v /path/to/your/app:/app xosadmin/docker-flask:uwsgi-test