feat: add playwright chromium to docker image for html-to-image

This commit is contained in:
SnapOtter
2026-06-06 21:45:39 +08:00
parent f8cfa17bd6
commit 4d7f67d2af
+4
View File
@@ -261,6 +261,10 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store/v3 \
npm pkg delete scripts.prepare && \
pnpm install --frozen-lockfile --prod
# Install Playwright Chromium for HTML-to-Image tool
RUN npx playwright install chromium --with-deps && \
rm -rf /tmp/* /root/.cache/ms-playwright/.links
# Copy source code for API (tsx runs TS directly - no build step needed)
COPY apps/api/src ./apps/api/src
COPY apps/api/drizzle ./apps/api/drizzle