diff --git a/Dockerfile b/Dockerfile index 05dee4522..b4401d20b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -ARG NODE_VERSION=12.10.0 -FROM node:${NODE_VERSION} +# Download Playwright and its dependencies +FROM mcr.microsoft.com/playwright:bionic # Add our user and group first to make sure their IDs get assigned consistently, # regardless of whatever dependencies get added. @@ -10,33 +10,12 @@ RUN apt-get update && \ apt-get install -y libgtk2.0-0 libgconf-2-4 \ libasound2 libxtst6 libxss1 libnss3 xvfb -# Install latest chrome dev package. -# 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 --no-install-recommends \ - && 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-unstable \ - --no-install-recommends \ - && apt-get install -y libgbm1 \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get purge --auto-remove -y curl \ - && rm -rf /src/*.deb - -# Uncomment to skip the chromium download when installing puppeteer. If you do, -# you'll need to launch puppeteer with: -# browser.launch({executablePath: 'google-chrome-unstable'}) -# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true - - # Add pptr user. RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ && mkdir -p /home/pptruser/Downloads \ && chown -R pptruser:pptruser /home/pptruser \ && chown -R pptruser:pptruser /home/pptruser - #RUN mkdir /home/codecept COPY . /codecept