fix: make Playwright runtime work in docker
Some checks failed
Deploy Holiday Property Booking / deploy (push) Successful in 4m19s
Test & Build Holiday Property Booking / test-build (push) Has been cancelled
Playwright Holiday Property Booking / playwright (push) Has been cancelled

This commit is contained in:
2026-05-26 08:03:14 +00:00
parent 7b6d2d8603
commit b28426594c

View File

@@ -1,10 +1,15 @@
FROM node:20-alpine FROM node:20-bookworm-slim
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install 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 . . COPY . .
RUN npm run prisma:generate RUN npm run prisma:generate