Put your uv project inside a Docker container

There are quite some opinions out there on how to dockerize Python projects. I've had many a discussion on how to put Poetry inside Docker and now that I'm replacing Poetry with uv every where I can, I feel it's best to also post my opinion on how to do that. So let's jump into building a Dockerfile for a Python project maintained with uv .