Skip to content

Commit 4b783c9

Browse files
committed
fix: align Playwright browser path in Docker
Set PLAYWRIGHT_BROWSERS_PATH=0 in the backend image so Playwright installs Chromium into the same local node_modules path that runtime uses. This prevents missing executable errors during test validation inside containers.
1 parent 19af0a2 commit 4b783c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ COPY backend/ ./backend/
1111
COPY .env.example .env
1212

1313
ENV DATABASE_URL=postgresql://postgres:postgres@localhost:5432/playwright_testing
14+
ENV PLAYWRIGHT_BROWSERS_PATH=0
1415

1516
RUN cd backend && npx prisma generate
1617
RUN cd backend && npx tsc -p tsconfig.json

0 commit comments

Comments
 (0)