From 872eb466374dd0963bed5320e6d3e5c17be452bc Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Thu, 16 Apr 2026 18:24:30 +0200 Subject: [PATCH] Add Playwright chromium system dependencies Lets `playwright install` run without `--with-deps` in the gitbutler e2e workflow, which on a cache miss can take 40+ minutes on this image. --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b05b6c7..f06f991 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ FROM ubuntu:jammy-20240627.1 AS base +# The final block is Playwright chromium system dependencies for Ubuntu 22.04, +# so `playwright install` in CI does not need `--with-deps`. RUN apt-get update && \ apt-get install -y \ libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev build-essential curl wget \ libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \ - jq tar bash libbrotli-dev brotli imagemagick git cmake + jq tar bash libbrotli-dev brotli imagemagick git cmake \ + libnspr4 libnss3 libasound2 libatk-bridge2.0-0 libdrm2 \ + libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 \ + libxkbcommon0 libpango-1.0-0 libcairo2 libcups2 RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y