chore: add Dockerfile that installs necessary deps on Ubuntu Bionic
This commit is contained in:
parent
2362d38e59
commit
622057e0bc
33
docker/Dockerfile.bionic
Normal file
33
docker/Dockerfile.bionic
Normal file
|
|
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in a new issue