Skip to content

Commit d243388

Browse files
committed
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feature/CH-152
2 parents ee44ca7 + 71a2900 commit d243388

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

test/test-e2e/Dockerfile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
FROM node:20
2-
3-
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
4-
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
5-
# installs, work.
6-
RUN apt-get update \
7-
&& apt-get install -y wget gnupg \
8-
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
9-
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
10-
&& apt-get update \
11-
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
12-
--no-install-recommends \
13-
&& rm -rf /var/lib/apt/lists/*
1+
FROM ghcr.io/puppeteer/puppeteer:22
142

3+
USER root
154
# If running Docker >= 1.13.0 use docker run's --init arg to reap zombie processes, otherwise
165
# uncomment the following lines to have `dumb-init` as PID 1
176
# ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_x86_64 /usr/local/bin/dumb-init
@@ -34,7 +23,7 @@ RUN yarn install --timeout 99999999
3423

3524
# Run everything after as non-privileged user.
3625

37-
26+
RUN npx puppeteer browsers install chrome
3827
COPY --chown=test . .
3928
USER test
4029
CMD ["yarn", "test"]

0 commit comments

Comments
 (0)