# Optimal Dockerfiles for Python (https://depot.dev/docs/container-builds/optimal-dockerfiles/python)

We've assembled some optimal Dockerfiles for building Docker images for Python using different package managers. These Dockerfiles are what we recommend when building Docker images for Python applications, but may require modifications based on your specific use case.

## Guides

* [Dockerfile for Python using `pip`](/docs/container-builds/optimal-dockerfiles/python-pip-dockerfile)
* [Dockerfile for Python using `poetry`](/docs/container-builds/optimal-dockerfiles/python-poetry-dockerfile)
* [Dockerfile for Python using `uv`](/docs/container-builds/optimal-dockerfiles/python-uv-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.