Skip to content
Fastest way to ship Python web apps, anywhere. Be shipping πŸš€ (using Docker, Flask, Gunicorn, Whitenoise)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
static add example app and docs Jan 3, 2018
templates add example app and docs Jan 3, 2018
.gitignore add example app and docs Jan 3, 2018
Dockerfile add copy after apt install to enable cache & faster build Jan 25, 2018
LICENSE fix whitenoise config as per evansd/whitenoise#172 Feb 5, 2018


Fast and easy way to ship Python web apps, anywhere. Be shipping πŸš€

Building apps using Python is fun. But shipping them, not so much (unlike PHP & NodeJS, which are supported almost everywhere) However, Docker makes it really easy, here is how:

  • Flask: Web app framework. You could take any other WSGI framework
  • Gunicorn: Production grade App server for Python
  • Whitenoise: Serving static files (js, css, images etc)
  • Docker: Contenarize codebase + all of the above tech to ship


You can try sample Flask app container from Docker Hub. For that, you don't need to clone this git source.

  • docker pull chhantyal/flask-docker
  • docker run -p 8000:8000 flask-docker


In few steps, you can run on local, your colleague's local, AWS, Azure, anywhere.

Docker Container -> Container Registry -> Cloud

First build container:

  • docker build . -t flask-docker:latest

Test local container:

  • Run: docker run -p 8000:8000 flask-docker:latest
  • Open: http://localhost:8000

If you want to deploy in the cloud:

  • Tag it: docker tag flask-docker:latest
  • Push to remote container registry: docker push
  • Run in remote server: docker run -d -p 80:8000 flask-docker:latest

See Dockerfile ✨🍰✨

You can’t perform that action at this time.