skip browser download during playwright install

This commit is contained in:
Zhi
2026-03-13 10:59:15 +00:00
parent 9b6377c787
commit d389a9eafc

View File

@@ -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"]