uv下载加速

This commit is contained in:
yml
2026-04-08 18:01:11 +08:00
parent 5787925179
commit 238962d513
+4 -3
View File
@@ -24,13 +24,14 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages uv \
&& ln -sf /usr/local/bin/uv /usr/bin/uv
COPY apps/backend/package.json apps/backend/package-lock.json ./
RUN npm ci
RUN --mount=type=cache,target=/root/.npm npm ci
RUN PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ npx playwright install --with-deps chromium
COPY apps/backend/ ./
COPY apps/backend/subservices/ocr-worker/ ./subservices/ocr-worker/
RUN --mount=type=cache,target=/root/.cache/uv uv sync --directory subservices/ocr-worker --frozen
RUN uv sync --directory subservices/ocr-worker --frozen
COPY apps/backend/ ./
RUN mkdir -p /app/data /app/data/browser-sessions /app/data/redeem-screenshots