Fix CI
All checks were successful
Build and publish Docker image / build-and-push (push) Successful in 9m50s
CI / Check (push) Successful in 13m54s

This commit is contained in:
Andras Schmelczer 2026-06-14 21:21:22 +01:00
parent e90a3285a1
commit 408d3f87f0
2 changed files with 15 additions and 1 deletions

View file

@ -12,10 +12,19 @@ ENV BUGSINK_ENVIRONMENT=$BUGSINK_ENVIRONMENT
ENV BUGSINK_RELEASE=$BUGSINK_RELEASE
ENV BUGSINK_SEND_DEFAULT_PII=$BUGSINK_SEND_DEFAULT_PII
# Puppeteer's bundled Chrome downloads from storage.googleapis.com, which is
# geo-blocked on the CI host ("this service is not available in your location").
# Install Chromium from Debian instead: it's reachable, currently tracks the same
# Chrome 149.x puppeteer expects, and apt pulls in the system libraries it needs.
# So: skip puppeteer's postinstall browser download and point its launcher (used
# by the prerender step) at the system binary.
ENV PUPPETEER_SKIP_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
RUN apt-get update \
&& npx puppeteer browsers install chrome --install-deps \
&& apt-get install -y --no-install-recommends chromium \
&& rm -rf /var/lib/apt/lists/*
COPY frontend/ ./
RUN npm run build