From 81212b82f585ce2c8f65f18c248889a15b072dd3 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 18 Mar 2026 18:14:29 -0500 Subject: [PATCH] Update Docker guide with changes from `uv-docker-example` --- docs/guides/integration/docker.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index 6699b10e9edc5..1d49c2979e961 100644 --- a/docs/guides/integration/docker.md +++ b/docs/guides/integration/docker.md @@ -474,6 +474,9 @@ For example: FROM python:3.12-slim AS builder COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ +# Use the system Python across both stages +ENV UV_PYTHON_DOWNLOADS=0 + # Change the working directory to the `app` directory WORKDIR /app @@ -493,7 +496,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ FROM python:3.12-slim # Copy the environment, but not the source code -COPY --from=builder --chown=app:app /app/.venv /app/.venv +COPY --from=builder /app/.venv /app/.venv # Run the application CMD ["/app/.venv/bin/hello"]