From 47fa0229b32ed4d94e2028625ffd2fed794e352a Mon Sep 17 00:00:00 2001 From: nfel Date: Tue, 4 Aug 2026 21:48:34 +0330 Subject: [PATCH] Install uv via curl in worker stage The Playwright Noble image ships Python but not pip or uv in PATH. Install uv directly via curl, then run uv sync natively so the venv targets this image's Python 3.12 instead of copying a broken 3.11 venv. Co-authored-by: Qwen-Coder --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08d45b3..6d1acd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,8 +68,11 @@ WORKDIR /app COPY pyproject.toml uv.lock* ./ # Install deps natively so the venv targets this image's Python -RUN pip install --no-cache-dir --upgrade uv==0.11.31 \ - && uv sync --frozen --no-dev --no-install-project +# (Playwright Noble ships uv via entrypoint shim but not in PATH) +RUN curl -LsSf https://astral.sh/uv/install.sh | sh 2>&1 +ENV PATH="/root/.local/bin:$PATH" + +RUN uv sync --frozen --no-dev --no-install-project # Copy app code (busts cache on code changes, not deps) COPY . .