Files
LUNA-Charts/Dockerfile.test
Ninosaurier 85b1ca240e fix(deps): pin playwright exactly and respect lockfile in docker build
The Playwright version was pinned with a caret range and the test
Dockerfile deleted pnpm-lock.yaml before installing, so every image
build silently re-resolved to the latest matching Playwright version.
This caused the npm package and the Docker base image to drift apart.

- packages/luna-charts/package.json: pin playwright to 1.62.1 exactly
- Dockerfile.test: stop deleting pnpm-lock.yaml before install, and
  use --frozen-lockfile so a mismatch between package.json and the
  lockfile fails the build loudly instead of resolving silently
2026-08-02 01:31:47 +02:00

22 lines
410 B
Docker

FROM mcr.microsoft.com/playwright:v1.62.1-noble
RUN corepack enable && corepack prepare pnpm@10 --activate
ENV CI=true
WORKDIR /app
COPY . .
RUN rm -rf node_modules packages/**/node_modules
ENV PNPM_CONFIG_SUPPORTED_ARCHITECTURES="current,linux-x64-gnu"
RUN pnpm install --frozen-lockfile
WORKDIR /app/packages/luna-charts
RUN pnpm add -D @rolldown/binding-linux-x64-gnu
CMD ["pnpm", "test:browser"]