DigitalConsumer.ISS/Dockerfile.playwright
2026-03-31 10:24:27 -04:00

26 lines
615 B
Docker

FROM node:20
FROM mcr.microsoft.com/playwright:v1.48.0-noble
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy playwright-tests package files + authenticated .npmrc, then install
COPY playwright-tests/package*.json ./playwright-tests/
COPY playwright-tests/.npmrc ./playwright-tests/
RUN cd playwright-tests && npm install
# Install Playwright browsers
RUN npx playwright install chromium --with-deps
# Install jq
RUN apt-get install -y jq
# Copy the rest of the application code
COPY . .