mirror of https://github.com/astral-sh/uv
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:
parent
0dd71f4382
commit
7b6b02a7d1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue