Skip to content

Commit 39b5768

Browse files
authored
Disable UV_PYTHON_DOWNLOADS in the multistage image (#42)
1 parent 96ace5c commit 39b5768

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

multistage.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# See `Dockerfile` for details.
55
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder
66
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
7+
8+
# Disable Python downloads, because we want to use the system interpreter
9+
# across both images. If using a managed Python version, it needs to be
10+
# copied from the build image into the final image.
11+
ENV UV_PYTHON_DOWNLOADS=0
12+
713
WORKDIR /app
814
RUN --mount=type=cache,target=/root/.cache/uv \
915
--mount=type=bind,source=uv.lock,target=uv.lock \

0 commit comments

Comments
 (0)