11# Download Playwright and its dependencies
22FROM mcr.microsoft.com/playwright:v1.35.1
3+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
34
45# Installing the pre-required packages and libraries
56RUN apt-get update && \
@@ -9,14 +10,12 @@ RUN apt-get update && \
910# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
1011# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
1112# installs, work.
12- RUN apt-get update \
13- && apt-get install -y wget gnupg \
14- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
15- && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
16- && apt-get update \
17- && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
18- --no-install-recommends \
19- && rm -rf /var/lib/apt/lists/*
13+ RUN apt-get update && apt-get install -y gnupg wget && \
14+ wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
15+ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
16+ apt-get update && \
17+ apt-get install -y google-chrome-stable --no-install-recommends && \
18+ rm -rf /var/lib/apt/lists/*
2019
2120
2221# Add pptr user.
@@ -36,7 +35,8 @@ RUN ln -s /codecept/bin/codecept.js /usr/local/bin/codeceptjs
3635RUN mkdir /tests
3736WORKDIR /tests
3837# Install puppeteer so it's available in the container.
39- RUN npm i puppeteer
38+ 39+ RUN google-chrome --version
4040
4141# Allow to pass argument to codecept run via env variable
4242ENV CODECEPT_ARGS=""
0 commit comments