Skip to content

Commit

Permalink
Add back dependencies that were accidentally removed
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldstone93 committed Jan 14, 2025
1 parent f8cef2a commit 0cdccea
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,24 @@ RUN apk --no-cache add \
ttf-liberation \
bash

# Install Chromium and Puppeteer for PDF generation
RUN apk --no-cache add chromium
# Install Chromium and Puppeteer for PDF generation
# Installs latest Chromium package available on Alpine (Chromium 108)
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates

# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

# Install latest version of Puppeteer
RUN yarn add puppeteer

# Ensure everything is executable
RUN chmod +x /usr/local/bin/*

# Clean up build dependencies
RUN apk del build-dependencies
Expand Down

0 comments on commit 0cdccea

Please sign in to comment.