From ee3003c09a5e00d4f9426c99b7af301a61a65273 Mon Sep 17 00:00:00 2001 From: shmyga Date: Mon, 14 Sep 2026 21:48:13 +0300 Subject: [PATCH] build(docker): fix playwright setup --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef3c3f5..48f1569 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,18 +23,19 @@ COPY static ./ RUN npm run build FROM python:3.14-slim + +ENV PLAYWRIGHT_BROWSERS_PATH="/opt/playwright-browsers" +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ + --mount=type=cache,target=/var/lib/apt,sharing=locked \ + pip install playwright && \ + playwright install --with-deps chromium + ENV PATH="/app/.venv/bin:$PATH" -ENV PLAYWRIGHT_BROWSERS_PATH=/root/pw-browsers ENV TZ="Europe/Moscow" WORKDIR /app COPY --from=builder /app ./ -RUN --mount=type=cache,target=/root/pw-browsers \ - --mount=type=cache,target=/var/cache/apt,sharing=locked \ - --mount=type=cache,target=/var/lib/apt,sharing=locked \ - .venv/bin/playwright install chromium --with-deps --only-shell - COPY --from=node-builder /app/dist ./static/dist COPY gallery gallery/