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 eddc0e3 commit 9628ad5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions puppeteer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ RUN chmod +x /usr/local/bin/dumb-init
# browser.launch({executablePath: 'google-chrome-unstable'})
# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Install puppeteer so it's available in the container.
RUN corepack enable && corepack install -g yarn@^4.4.1
RUN yarn add puppeteer@^19.7.2
# Enable corepack so that yarn can downloaded/installed during the CI run.
RUN corepack enable

# Add user so we don't need --no-sandbox.
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
&& mkdir -p /home/pptruser/Downloads \
&& chown -R pptruser:pptruser /home/pptruser \
&& chown -R pptruser:pptruser /usr/app/node_modules
&& chown -R pptruser:pptruser /usr/app

# Run everything after as non-privileged user.
USER pptruser
Expand Down

0 comments on commit 9628ad5

Please sign in to comment.