2022-12-07 11:40:56 +01:00
|
|
|
#
|
2023-01-16 10:00:05 +01:00
|
|
|
# This Dockerfile is used for locally running Playwright in a Linux environment.
|
|
|
|
# We do this to ensure our reference images for visual regression tests are the same during development and in CI.
|
2022-12-07 11:40:56 +01:00
|
|
|
#
|
|
|
|
|
2023-01-16 10:00:05 +01:00
|
|
|
FROM mcr.microsoft.com/playwright:v1.28.1-focal
|
2022-12-12 10:28:06 +01:00
|
|
|
|
2022-12-07 11:40:56 +01:00
|
|
|
WORKDIR /work
|
|
|
|
|
2023-01-16 10:00:05 +01:00
|
|
|
RUN npm install -g pnpm
|
|
|
|
|
|
|
|
RUN pnpm install @playwright/test@1.28.1
|
2022-12-07 11:40:56 +01:00
|
|
|
|
2023-01-16 10:00:05 +01:00
|
|
|
COPY playwright.config.ts ./
|