Skip to content

The simplest way of Dockerizing a Flask app for an almost prod worthy deployment 🐳 πŸ’β€β™‚οΈ

Notifications You must be signed in to change notification settings

matty-at-rdc/an-encouraging-word

Repository files navigation

An Encouraging Word

What is this?

This app might be running here.

This is mostly an example app wherein I get to play with deploying a Flask application. It is tiny, but uses a Dockerized gunicorn instance to serve the app thereby making it trivial to deploy. The Dockerfile and run-prod.sh files are likely of the greatest interest in this repo.

Why make this?

Because WSGI + Docker + Deployments is an area I often need a simple lab set up for!

How do I use this

Pre-requisites

  • Well, first off you need PyEnv
  • Next, you'll need Docker running

Steps

DEV

  • sh run-dev.sh

PROD

  • sh run-prod.sh

PROD CONTAINER

  • sh run-prod-container.sh

DEPLOY IMAGE TO PROD

  • sh run-deploy.sh

Resources

Some links I used while making this. Be aware the extent to which I used these items is not documented and a great deal of the works was done "by me" and by that I mean I looked at all or part of the resources listed and used some amount typically not all of the resource in question, but enough to want to credit the author with putting me on the right track.

Ideas

Ideas I am toying with for this project!

Caveats

  • This project does not work for individuals named "Lane"

About

The simplest way of Dockerizing a Flask app for an almost prod worthy deployment 🐳 πŸ’β€β™‚οΈ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published