From 622057e0bc9bb454c4cc61631ecf3349aca9d0ad Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 13 Jan 2020 18:29:00 -0800 Subject: [PATCH] chore: add Dockerfile that installs necessary deps on Ubuntu Bionic --- docker/Dockerfile.bionic | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docker/Dockerfile.bionic diff --git a/docker/Dockerfile.bionic b/docker/Dockerfile.bionic new file mode 100644 index 0000000000..a3f942b16b --- /dev/null +++ b/docker/Dockerfile.bionic @@ -0,0 +1,33 @@ +################################################ +# Compile with: +# sudo docker build -t microsoft/playwright:bionic -f Dockerfile.bionic . +# +# Run with: +# sudo docker run -d -p --rm --name playwright microsoft/playwright:bionic +# +################################################# + +FROM ubuntu:bionic + +# 1. Install node12 +RUN apt-get update && apt-get install -y curl && \ + curl -sL https://deb.nodesource.com/setup_12.x | bash - && \ + apt-get install -y nodejs + +# 2. Install webkit dependencies & XVFB +RUN apt-get install -y libwoff1 \ + libopus0 \ + libwebp6 \ + libwebpdemux2 \ + libenchant1c2a \ + libgudev-1.0-0 \ + libsecret-1-0 \ + libhyphen0 \ + libgdk-pixbuf2.0-0 \ + libegl1 \ + libnotify4 \ + libxslt1.1 \ + libevent-2.1-6 && \ + apt-get install -y xvfb + +