From b36cc9065254b0a412ab7cb6c04c56a3da3c1b7f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 27 Jun 2026 15:27:56 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_018Zhp8eDqpSFxMru61fBKXK --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8c4993b9..92472bb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ FROM python:3.13-alpine AS builder # Install uv for fast, reliable Python packaging COPY --from=ghcr.io/astral-sh/uv:0.11 /uv /usr/local/bin/uv +WORKDIR /build + # Copy only whats needed for dependencies first COPY pyproject.toml LICENSE README.md ./