From 019d428341ec5120e852e3c768eb99be5cf663fd Mon Sep 17 00:00:00 2001 From: Cristian Necula Date: Thu, 19 Mar 2026 13:05:17 +0000 Subject: [PATCH] Add Playwright Chromium system dependencies to base image npm test (via @web/test-runner-playwright) fails after every Coder workspace rebuild because the Chromium shared libraries are missing from the base image. This adds the OS packages that Playwright's Chromium needs so tests work out of the box. Package list from: npx playwright install-deps chromium --dry-run (Ubuntu Noble 24.04). Only Chromium deps are included; Firefox and WebKit deps can be added later if needed. --- images/base/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/images/base/Dockerfile b/images/base/Dockerfile index fad7811..359af5a 100644 --- a/images/base/Dockerfile +++ b/images/base/Dockerfile @@ -45,6 +45,43 @@ apt-get install -y --no-install-recommends \ ripgrep \ tmux +# Playwright Chromium system dependencies +# (browser binaries are installed per-project via `npx playwright install`) +apt-get install -y --no-install-recommends \ + fonts-freefont-ttf \ + fonts-ipafont-gothic \ + fonts-liberation \ + fonts-noto-color-emoji \ + fonts-tlwg-loma-otf \ + fonts-unifont \ + fonts-wqy-zenhei \ + libasound2t64 \ + libatk-bridge2.0-0t64 \ + libatk1.0-0t64 \ + libatspi2.0-0t64 \ + libcairo2 \ + libcups2t64 \ + libdbus-1-3 \ + libdrm2 \ + libfontconfig1 \ + libfreetype6 \ + libgbm1 \ + libglib2.0-0t64 \ + libnspr4 \ + libnss3 \ + libpango-1.0-0 \ + libx11-6 \ + libxcb1 \ + libxcomposite1 \ + libxdamage1 \ + libxext6 \ + libxfixes3 \ + libxkbcommon0 \ + libxrandr2 \ + xfonts-cyrillic \ + xfonts-scalable \ + xvfb + # Install sops curl -fsSLo /usr/local/bin/sops \ https://github.com/getsops/sops/releases/download/v3.11.0/sops-v3.11.0.linux.amd64