From 15ae421bc2ec47efb0f768226a3e74d6cbe36d38 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Tue, 5 May 2026 12:42:46 -0700 Subject: [PATCH] fix: OSS Docker image build after lightweight wheel split (#5824) Co-authored-by: Claude Opus 4.7 (1M context) --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c133a51df..351c3d5a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,16 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh \ && ln -s /root/.local/bin/uv /usr/local/bin/uv COPY ./pyproject.toml /tmp/pyproject.toml COPY ./uv.lock /tmp/uv.lock -RUN uv pip compile pyproject.toml -o requirements.txt --no-annotate --no-header +RUN uv pip compile pyproject.toml --extra server --python-version 3.11 -o requirements.txt --no-annotate --no-header FROM python:3.11-slim-bookworm WORKDIR /app COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt RUN pip install --upgrade pip setuptools wheel -RUN pip install --no-cache-dir --upgrade -r requirements.txt +# --no-deps: requirements.txt is fully resolved by uv, including the +# pyproject overrides that loosen litellm's jsonschema==4.23.0 pin. +# Letting pip re-resolve here would re-introduce that conflict. +RUN pip install --no-cache-dir --no-deps -r requirements.txt RUN playwright install-deps RUN playwright install RUN apt-get install -y xauth x11-apps netpbm gpg ca-certificates x11vnc && apt-get clean