Skip to content

Commit a0ed884

Browse files
sandhoseclaude
andcommitted
Fix Dockerfile: use named stage for uv version pinning
COPY --from does not support ARG expansion, so use a separate FROM stage to reference the pinned uv image. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fa0f6db commit a0ed884

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ ARG DEBIAN_VERSION=bookworm
1010
ARG PYTHON_VERSION=3.12
1111
ARG UV_VERSION=0.11.3
1212

13+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv
14+
1315
###
1416
### Stage 0: builder
1517
###
1618
FROM python:${PYTHON_VERSION}-slim-${DEBIAN_VERSION} AS builder
1719

18-
COPY --from=ghcr.io/astral-sh/uv:${UV_VERSION} /uv /uvx /bin/
20+
COPY --from=uv /uv /uvx /bin/
1921

2022
WORKDIR /app
2123

0 commit comments

Comments
 (0)