Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
Browse files Browse the repository at this point in the history
…ure/CH-152
  • Loading branch information
filippomc committed Oct 2, 2024
2 parents ee44ca7 + 71a2900 commit d243388
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 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 All @@ -34,7 +23,7 @@ RUN yarn install --timeout 99999999

# Run everything after as non-privileged user.


RUN npx puppeteer browsers install chrome
COPY --chown=test . .
USER test
CMD ["yarn", "test"]

0 comments on commit d243388

Please sign in to comment.