Skip to content

title: Python: multi-stage with uv description: Multi-stage Dockerfile for Python services using uv and a slim runtime stage. status: stub tags: - docker - python


Python: multi-stage with uv

Stub page

Small, reproducible Python images using uv for dependency install.

Planned content

  • Builder stage: uv sync into /app/.venv
  • Runtime stage: distroless or python:slim with non-root user
  • Cache mounts for uv cache
  • When to vendor wheels vs install at build