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-27 15:51:35 +01:00
|
|
|
FROM mcr.microsoft.com/playwright:v1.29.2-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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
RUN pnpm install
|
|
|
|
|
|
|
|
COPY playwright.config.ts webpack.config.js babel.config.js tsconfig.json ./
|
|
|
|
|
|
|
|
COPY .storybook/ .storybook/
|