19 lines
714 B
Docker
19 lines
714 B
Docker
# Playwright runner — browsers preinstalled, pinned to match @playwright/test in e2e-tests/.
|
|
# Built/run via e2e-tests/compose.visual.yml; targets the `web` service over the network.
|
|
FROM mcr.microsoft.com/playwright:v1.64.1-noble
|
|
|
|
WORKDIR /e2e-tests
|
|
|
|
COPY e2e-tests/package.json e2e-tests/package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY e2e-tests/ ./
|
|
# e2e-tests/tsconfig.json extends it, so the specs are held to the host's strictness flags.
|
|
COPY tsconfig.json /tsconfig.json
|
|
|
|
# Runs as the invoking `--user` so artifacts land owned by them, not root — and an arbitrary uid has
|
|
# no passwd entry here, so its home would be the unwritable `/`. npm's cache follows HOME.
|
|
ENV HOME=/tmp
|
|
|
|
CMD ["npx", "playwright", "test"]
|