skip browser download during playwright install
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
FROM node:20-bookworm-slim
|
FROM node:20-bookworm-slim
|
||||||
|
|
||||||
|
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||||
|
ENV CHROME_DEBUGGING_PORT=9222
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install && npm install -g playwright && playwright install chromium
|
RUN npm install && npm install -g playwright && playwright install chromium
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV CHROME_DEBUGGING_PORT=9222
|
|
||||||
CMD ["npx", "playwright", "test"]
|
CMD ["npx", "playwright", "test"]
|
||||||
|
|||||||
Reference in New Issue
Block a user