Skip to content

Commit 6ee7155

Browse files
claudeMaStr
authored andcommitted
fix: add WORKDIR /build in builder stage to fix uv 0.11 cache error
uv 0.11 refuses to build if its cache dir (/root/.cache/uv) is inside the build source directory. Without an explicit WORKDIR the builder stage defaulted to /, making / the source root and triggering the new safety check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Zhp8eDqpSFxMru61fBKXK
1 parent ed89065 commit 6ee7155

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM python:3.13-alpine AS builder
44
# Install uv for fast, reliable Python packaging
55
COPY --from=ghcr.io/astral-sh/uv:0.11 /uv /usr/local/bin/uv
66

7+
WORKDIR /build
8+
79
# Copy only whats needed for dependencies first
810
COPY pyproject.toml LICENSE README.md ./
911

0 commit comments

Comments
 (0)