Hacker GitHub

← All repos

nickjj/docker-flask-example

View on GitHub ↗ ★ 764 Python

A production ready example Flask app that's using Docker and Docker Compose.

23 mentions on Hacker News by 1 person: 0 stories, 23 comments · first 2021-01-04 · latest 2026-05-20

Mentions per year 23 mentions · busiest year 2021 (11)
20082026
  1. …, received zero feedback and then archived it at the start of 2026. [0]: https://github.com/nickjj/docker-flask-example [1]: https://github.com/nickjj/docker-rails-example [2]: https://github.com/nickjj/docker-django-example [3]: h
  2. …faster than with pip, at least on my machine. Both of my Docker Compose starter app examples for https://github.com/nickjj/docker-flask-example and https://github.com/nickjj/docker-django-example use uv. I also wrote about making the…
    comment by nickjj · 2025-10-13 · in Uv overtakes pip in CI
  3. …saw room for improvement, left an audit trail in the comments and moved on. Here's the commits https://github.com/nickjj/docker-flask-example/commit/d1b7b9... and https://github.com/nickjj/docker-django-example/commit/a12e2... btw.
  4. If anyone is looking for examples on using uv with Docker, I have Flask and Django example apps at https://github.com/nickjj/docker-flask-example and https://github.com/nickjj/docker-django-example . It prevents uv from making a virtual…
  5. …time is better than nothing to solve this problem with nothing more than pip. It's what I do in https://github.com/nickjj/docker-flask-example and https://github.com/nickjj/docker-django-example . It's not perfect but it solves 80% with…
  6. …off upgrading Flask to 3.0 and Python 3.12 due to these open issues with popular 3rd party packages https://github.com/nickjj/docker-flask-example/issues/17 . I'm sure new releases will get pushed in due time. When they are good to go then…
    comment by nickjj · 2023-10-20 · in We Have to Talk About Flask
  7. …in a container. Here's a few project specific examples. They all have similar run scripts: - https://github.com/nickjj/docker-flask-example - https://github.com/nickjj/docker-rails-example - https://github.com/nickjj/docker-django-example…
  8. …to go web app examples aimed at both development and production with Docker Compose, I maintain: - https://github.com/nickjj/docker-flask-example - https://github.com/nickjj/docker-rails-example - https://github.com/nickjj/docker-django-exa…
    comment by nickjj · 2023-02-25 · in Awesome Docker Compose Examples
  9. This is what I do except I use a shell script instead of a Makefile. A working example of this is at: https://github.com/nickjj/docker-flask-example/blob/912388f3... Those ./run ci:XXX commands are in:…
    comment by nickjj · 2022-11-26 · in Act: Run your GitHub Actions locally
  10. …little detail as you'd like. For my own personal projects, I tend to document this file like this https://github.com/nickjj/docker-flask-example/blob/main/.en... .
  11. …at https://nickjanetakis.com/blog/replacing-make-with-a-shell-s... and an example file is here https://github.com/nickjj/docker-flask-example/blob/main/run .
  12. …certain commands. Sort of like a Makefile except with the full power of your shell. For example: https://github.com/nickjj/docker-flask-example/blob/main/run In a bigger project this file tends to grow quite large, even when you have the…
  13. …lint:docker" or "./run lint:frontend". I have a practical example of this sort of thing here: https://github.com/nickjj/docker-flask-example/blob/main/run I've written about this pattern in more detail here…
  14. …file and referencing it with pip3 install using the -c flag. There's example repos at https://github.com/nickjj/docker-flask-example and https://github.com/nickjj/docker-django-example that demonstrate how it's done. It's not a 100% fool…
  15. …get around this by simply not using volumes in CI. I have a bunch of examples of this pattern at: - https://github.com/nickjj/docker-flask-example - https://github.com/nickjj/docker-django-example - https://github.com/nickjj/docker-rails-ex…
  16. …+ Celery + Redis + PostgreSQL + Webpack + TailwindCSS starter project to support Flask 2.0 here: https://github.com/nickjj/docker-flask-example And I'll be updating my Build a SAAS App with Flask course for Flask 2.0 today at:…
  17. …100 assorted tests in ~10 seconds (testing models, views, etc.). An example of the above is here: https://github.com/nickjj/docker-flask-example A similar pipeline with comparable tools for Rails takes ~4-5 minutes and Phoenix takes ~4-5…
    comment by nickjj · 2021-05-01 · in Ask HN: How Long Is Your CI Process?
  18. …that it's going to work. For example I have a Docker + Flask example starter kit project at https://github.com/nickjj/docker-flask-example and the GitHub description is "A production ready example Flask app that's using Docker and Docker…
    comment by nickjj · 2021-04-17 · in I'd like to review your README
  19. …JIT compiler with various web frameworks and Webpack, I have a few example starter projects at: - https://github.com/nickjj/docker-flask-example - https://github.com/nickjj/docker-django-example - https://github.com/nickjj/docker-node-examp…
    comment by nickjj · 2021-04-07 · in TailwindCSS JIT with arbitrary values
  20. …macOS you could install these dependencies using brew instead. A working example of this is here: https://github.com/nickjj/docker-flask-example Check out the run script in the root of the project for "ci:" functions and the GH Actions yml…
  21. …build very nice feeling apps without going all-in with an API back-end and JS front-end. I released https://github.com/nickjj/docker-flask-example as a starter kit for what I use in new projects. It wires up things like SQLAlchemy, Celery,…
  22. …solution works with and without Docker. I have an example of it in this Docker Flask example repo https://github.com/nickjj/docker-flask-example#updating-depe... , but it'll work without Docker too.
    comment by nickjj · 2021-01-24 · in Pip has dropped support for Python 2
  23. I have one here: https://github.com/nickjj/docker-flask-example/blob/ca1d4849... The basic idea is you create a user in your Dockerfile, switch to that user with the USER instruction and now future instructions in your Dockerfile will be…
    comment by nickjj · 2021-01-04 · in Dockerfile Best Practices