From 7b6b02a7d15d0ffa9129abe90ae8cfa5dbf61660 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 9 Dec 2025 12:12:08 -0600 Subject: [PATCH] Recommend `UV_NO_DEV` in Docker installs (#17030) Closes https://github.com/astral-sh/uv/issues/17027 See also, https://github.com/astral-sh/uv-docker-example/pull/73 --- docs/guides/integration/docker.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index 19472ea6b..3e73e85b8 100644 --- a/docs/guides/integration/docker.md +++ b/docs/guides/integration/docker.md @@ -165,6 +165,9 @@ If you're using uv to manage your project, you can copy it into the image and in # Copy the project into the image COPY . /app +# Disable development dependencies +ENV UV_NO_DEV=1 + # Sync the project into a new environment, asserting the lockfile is up to date WORKDIR /app RUN uv sync --locked