perf(docker): install uv from PyPI instead of ghcr.io (avoid slow GHCR pulls)
Release / release (push) Successful in 1m46s

This commit is contained in:
2026-04-23 21:00:04 +03:00
parent 19036a90bb
commit a6a854ad21
+4 -4
View File
@@ -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