# New best practice Dockerfiles for Python (https://depot.dev/changelog/2024-09-19-new-python-guides)

> Published 2024-09-19

We've extended our best practice Dockerfile guides to now include [Python](/docs/container-builds/optimal-dockerfiles/python) in addition to our existing [Node.js](/docs/container-builds/optimal-dockerfiles/node) and [Rust](/docs/container-builds/optimal-dockerfiles/rust-dockerfile) guides.

The new Python guide includes examples of best practice Dockerfiles for when you're using `uv` and one for when you're using `poetry`:

* [Dockerfile for Python using `uv`](/docs/container-builds/optimal-dockerfiles/python-uv-dockerfile)
* [Dockerfile for Python using `poetry`](/docs/container-builds/optimal-dockerfiles/python-poetry-dockerfile)

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.