1
1
# Download Playwright and its dependencies
2
2
FROM mcr.microsoft.com/playwright:v1.35.1
3
+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
3
4
4
5
# Installing the pre-required packages and libraries
5
6
RUN apt-get update && \
@@ -9,14 +10,12 @@ RUN apt-get update && \
9
10
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
10
11
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
11
12
# 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/*
20
19
21
20
22
21
# Add pptr user.
@@ -36,7 +35,8 @@ RUN ln -s /codecept/bin/codecept.js /usr/local/bin/codeceptjs
36
35
RUN mkdir /tests
37
36
WORKDIR /tests
38
37
# Install puppeteer so it's available in the container.
39
- RUN npm i puppeteer
38
+
39
+ RUN google-chrome --version
40
40
41
41
# Allow to pass argument to codecept run via env variable
42
42
ENV CODECEPT_ARGS=""
0 commit comments