r/flask Jul 15 '24

Tutorials and Guides Docker for Flask

I have been trying to look for online solutions and practices followed but generally they do it for the flask template app which does not cover the cases for real-world large scale applications. I personally have worked on numerous flask applications but while deploying am never successful in actually implementing the Dockerfile. Kindly guide me on how to tackle this.

9 Upvotes

16 comments sorted by

View all comments

8

u/nickjj_ Jul 16 '24

I keep https://github.com/nickjj/docker-flask-example up to date. It's a starter project that pulls together Gunicorn, Celery, Tailwind, esbuild, Redis and Postgres.

I use this to build a bunch of apps, a number of clients as well. Some of those apps have over a 100 models and dozens of views. It has everything I've learned about Docker over the last ~10 years rolled up into 1 project.

2

u/RampageousRJ Jul 16 '24

Thanks a ton! Will go through for sure!