From 153f1e58b78ca1cfd9ab15731e0ee23ce6eeaca0 Mon Sep 17 00:00:00 2001 From: Jake Poznanski Date: Mon, 2 Jun 2025 18:39:32 +0000 Subject: [PATCH] Final uv fixes --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 285a752..70cdda7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,9 @@ WORKDIR /root COPY pyproject.toml pyproject.toml COPY olmocr/version.py olmocr/version.py +# Needed to resolve setuptools dependencies +ENV UV_INDEX_STRATEGY="unsafe-best-match" + RUN uv pip install --system --no-cache -e . RUN uv pip install --system --no-cache ".[gpu]" --extra-index-url https://download.pytorch.org/whl/cu128 RUN uv pip install --system --no-cache ".[bench]" @@ -57,5 +60,4 @@ RUN playwright install chromium COPY olmocr olmocr COPY scripts scripts -RUN python3 -m sglang.launch_server --help RUN python3 -m olmocr.pipeline --help \ No newline at end of file