We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UV_PYTHON_DOWNLOADS
1 parent 96ace5c commit 39b5768Copy full SHA for 39b5768
multistage.Dockerfile
@@ -4,6 +4,12 @@
4
# See `Dockerfile` for details.
5
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder
6
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
13
WORKDIR /app
14
RUN --mount=type=cache,target=/root/.cache/uv \
15
--mount=type=bind,source=uv.lock,target=uv.lock \
0 commit comments