Available Images
uv provides both distroless images (containing only uv binaries) and derived images (based on popular base images with uv pre-installed).Distroless Images
Derived Images
Installing uv
Copy from distroless image
The recommended approach is to copy the uv binary from the official distroless image:For reproducible builds, pin to a specific SHA256:
Basic Project Setup
Multi-Stage Build with Intermediate Layers
Optimize build times by separating dependency installation from project installation:For Workspaces
When using workspaces, use--frozen and --no-install-workspace: