Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzenklotz authored Oct 18, 2024
1 parent 5e4139d commit 205da36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion puppeteer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM cimg/node:18.20-browsers
WORKDIR /usr/app
USER root

# Remove any existing pre-installed yarn binary.
RUN rm -r /opt/yarn-v${YARN_VERSION}/bin/yarn /usr/local/bin/yarn /opt/yarn-v${YARN_VERSION}/bin/yarnpkg /usr/local/bin/yarnpkg

# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
Expand All @@ -24,7 +27,7 @@ RUN chmod +x /usr/local/bin/dumb-init
# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Enable corepack so that yarn can downloaded/installed during the CI run.
RUN corepack enable yarn
RUN corepack enable

# Add user so we don't need --no-sandbox.
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
Expand Down

0 comments on commit 205da36

Please sign in to comment.