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-06-01 16:33:21 +02:00
|
|
|
FROM mcr.microsoft.com/playwright:v1.29.2
|
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
|
|
|
|
|
2023-01-27 15:51:35 +01:00
|
|
|
COPY package.json pnpm-lock.yaml ./
|
2022-12-07 11:40:56 +01:00
|
|
|
|
2023-01-27 15:51:35 +01:00
|
|
|
ENV CYPRESS_INSTALL_BINARY=0
|
|
|
|
|
2023-08-29 09:28:03 +02:00
|
|
|
RUN pnpm install --frozen-lockfile
|
2023-01-27 15:51:35 +01:00
|
|
|
|
2023-11-13 15:32:10 +01:00
|
|
|
COPY playwright.config.ts webpack.config.js babel.config.js tsconfig.json test-runner-jest.config.js test-runner-jest-environment.js ./
|
2023-01-27 15:51:35 +01:00
|
|
|
|
|
|
|
COPY .storybook/ .storybook/
|