Skip to content

Commit fb3421f

Browse files
VikentyShevyrinVikentyShevyrin
and
VikentyShevyrin
authored
Update Dockerfile to support CodeceptJS 3.x. (#2742)
Co-authored-by: VikentyShevyrin <[email protected]>
1 parent 2d0f7cb commit fb3421f

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

Dockerfile

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
33

44
# Add our user and group first to make sure their IDs get assigned consistently,
55
# regardless of whatever dependencies get added.
@@ -10,33 +10,12 @@ RUN apt-get update && \
1010
apt-get install -y libgtk2.0-0 libgconf-2-4 \
1111
libasound2 libxtst6 libxss1 libnss3 xvfb
1212

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-
3313
# Add pptr user.
3414
RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
3515
&& mkdir -p /home/pptruser/Downloads \
3616
&& chown -R pptruser:pptruser /home/pptruser \
3717
&& chown -R pptruser:pptruser /home/pptruser
3818

39-
4019
#RUN mkdir /home/codecept
4120

4221
COPY . /codecept

0 commit comments

Comments
 (0)