fix: make Playwright runtime work in docker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user