Andrey Lushnikov bb34418095
devops: do cache busting for APT (#2656)
To avoid caching old package lists, every `apt-get install`
should be prefixed with `apt-get update`.

More info on the matter:
- https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
- https://github.com/moby/moby/issues/3313
2020-06-22 15:54:19 -07:00
..

Running Playwright in Docker

Dockerfile.bionic is a playwright-ready image of playwright. This image includes all the dependencies needed to run browsers in a Docker container.

Building image:

$ sudo docker build -t microsoft/playwright:bionic -f Dockerfile.bionic .

Running image:

$ sudo docker container run -it --rm --ipc=host --security-opt seccomp=chrome.json microsoft/playwright:bionic /bin/bash

Note

: The seccomp profile is coming from Jessie Frazelle. It's needed to run Chrome without sandbox.
Using --ipc=host is also recommended when using Chrome. Without it Chrome can run out of memory and crash.
See the docker documentation for this option here.

Playwright on Alpine

Browser builds for Firefox and WebKit are built for the glibc library. Alpine Linux and other distributions that are based on the musl standard library are not supported.