From b28426594ccfb30bdd6cf33fb92490f9be1328d9 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Tue, 26 May 2026 08:03:14 +0000 Subject: [PATCH] fix: make Playwright runtime work in docker --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25d362f..cccc7ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ -FROM node:20-alpine +FROM node:20-bookworm-slim WORKDIR /app COPY package*.json ./ RUN npm install +# Playwright's Chromium needs system libraries that Alpine does not provide +# reliably for this app's CI/runtime path. Install the Linux dependencies in +# the image so browser tests can launch in GitHub Actions and container runs. +RUN npx playwright install --with-deps chromium + COPY . . RUN npm run prisma:generate