perf(docker): install uv from PyPI instead of ghcr.io (avoid slow GHCR pulls)
Release / release (push) Successful in 1m46s
Release / release (push) Successful in 1m46s
This commit is contained in:
+4
-4
@@ -58,12 +58,12 @@ PY
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Stage 3: Runtime
|
# Stage 3: Runtime
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
FROM ghcr.io/astral-sh/uv:0.11.7 AS uv
|
|
||||||
|
|
||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
|
||||||
# uv — fast pip replacement; pinned version, not :latest
|
# uv — fast pip replacement. Installed from PyPI (Fastly CDN) rather than
|
||||||
COPY --from=uv /uv /uvx /bin/
|
# 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 \
|
ENV UV_COMPILE_BYTECODE=1 \
|
||||||
UV_LINK_MODE=copy
|
UV_LINK_MODE=copy
|
||||||
|
|||||||
Reference in New Issue
Block a user