From d389a9eafc74c78168915d5378f4087e849d68cd Mon Sep 17 00:00:00 2001 From: Zhi Date: Fri, 13 Mar 2026 10:59:15 +0000 Subject: [PATCH] skip browser download during playwright install --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a29a9da..0807db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM node:20-bookworm-slim +ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 +ENV CHROME_DEBUGGING_PORT=9222 + WORKDIR /app COPY package*.json ./ RUN npm install && npm install -g playwright && playwright install chromium COPY . . -ENV CHROME_DEBUGGING_PORT=9222 CMD ["npx", "playwright", "test"]