Skip to content

Commit

Permalink
Specify explicit chromium version
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Nov 22, 2024
1 parent 3704790 commit 69af2b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ RUN bundler -v && \
bundle install --retry=5 --jobs=4 && \
rm -rf /usr/local/bundle/cache

# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_SKIP_DOWNLOAD=true

# Install node packages defined in package.json
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --check-files
Expand Down Expand Up @@ -82,6 +85,10 @@ RUN apk add --update --no-cache tzdata && \
# libpq: required to run postgres
RUN apk add --no-cache libpq

# install chromium and node for the PDF generation
RUN apk add --no-cache nodejs
RUN apk add --no-cache chromium=123.0.6312.58

# Copy files generated in the builder image
COPY --from=builder /app /app
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
Expand Down

0 comments on commit 69af2b6

Please sign in to comment.