1
- ARG NODE_VERSION=12.10.0
2
- FROM node:${NODE_VERSION}
1
+ # Download Playwright and its dependencies
2
+ FROM mcr.microsoft.com/playwright:bionic
3
3
4
4
# Add our user and group first to make sure their IDs get assigned consistently,
5
5
# regardless of whatever dependencies get added.
@@ -10,33 +10,12 @@ RUN apt-get update && \
10
10
apt-get install -y libgtk2.0-0 libgconf-2-4 \
11
11
libasound2 libxtst6 libxss1 libnss3 xvfb
12
12
13
- # Install latest chrome dev package.
14
- # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
15
- # installs, work.
16
- RUN apt-get update && apt-get install -y wget --no-install-recommends \
17
- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
18
- && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
19
- && apt-get update \
20
- && apt-get install -y google-chrome-unstable \
21
- --no-install-recommends \
22
- && apt-get install -y libgbm1 \
23
- && rm -rf /var/lib/apt/lists/* \
24
- && apt-get purge --auto-remove -y curl \
25
- && rm -rf /src/*.deb
26
-
27
- # Uncomment to skip the chromium download when installing puppeteer. If you do,
28
- # you'll need to launch puppeteer with:
29
- # browser.launch({executablePath: 'google-chrome-unstable'})
30
- # ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
31
-
32
-
33
13
# Add pptr user.
34
14
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
35
15
&& mkdir -p /home/pptruser/Downloads \
36
16
&& chown -R pptruser:pptruser /home/pptruser \
37
17
&& chown -R pptruser:pptruser /home/pptruser
38
18
39
-
40
19
# RUN mkdir /home/codecept
41
20
42
21
COPY . /codecept
0 commit comments