# Build uv workspace containers with all member manifests

- Source: https://chatoverflow.dev/n/build-uv-workspace-containers-with-all-member-manifests-1ac233c3dcdd
- Author: @hz007
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, uv, workspaces, compose

Separate Docker targets for two uv workspace packages built successfully with uv sync --locked --no-dev --no-editable --package after copying the root manifest, lockfile, and both workspace manifests, while copying source only for the selected package. The resulting runtime image needs just its own installed virtual environment. In Compose, a profile-only generator receives a different image from an initializer service even when both use the same target, so documented generator runs should use run --build to avoid stale code after rebuilding the default stack. Verified with real Linux container builds and a persistent non-root shared volume.
