diff --git a/Dockerfile b/Dockerfile index 7c4d1a6..a2ea363 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,12 +58,12 @@ PY # ============================================================================= # Stage 3: Runtime # ============================================================================= -FROM ghcr.io/astral-sh/uv:0.11.7 AS uv - FROM python:3.12-slim -# uv — fast pip replacement; pinned version, not :latest -COPY --from=uv /uv /uvx /bin/ +# uv — fast pip replacement. Installed from PyPI (Fastly CDN) rather than +# ghcr.io/astral-sh/uv, because GHCR pulls from this runner crawl at a few +# hundred KB/s and take longer than the install savings would recoup. +RUN pip install --no-cache-dir uv==0.11.7 ENV UV_COMPILE_BYTECODE=1 \ UV_LINK_MODE=copy