Skip to content

Commit

Permalink
Fix puppeteer image
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Oct 2, 2024
1 parent 687ed91 commit 2effbe5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions test/test-e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
FROM node:20

# 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.
RUN apt-get update \
&& apt-get install -y wget gnupg \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
FROM ghcr.io/puppeteer/puppeteer:22

USER root
# If running Docker >= 1.13.0 use docker run's --init arg to reap zombie processes, otherwise
# uncomment the following lines to have `dumb-init` as PID 1
# ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_x86_64 /usr/local/bin/dumb-init
Expand Down

0 comments on commit 2effbe5

Please sign in to comment.