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
This commit is contained in:
Zanie Blue 2025-12-09 12:12:08 -06:00 committed by GitHub
parent 0dd71f4382
commit 7b6b02a7d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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