FROM alpine:3.16.0 # Installs latest Chromium package. RUN apk add --no-cache \ chromium \ nss \ freetype \ harfbuzz \ ca-certificates \ ttf-freefont \ nodejs \ yarn # Tell Puppeteer to skip installing Chrome. We'll be using the installed package. ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser RUN yarn add puppeteer@15.3.2 WORKDIR /app COPY . . ENTRYPOINT ["/app/entrypoint.sh"]