# E2E runner: the official Playwright image (browsers + libs preinstalled) with
# npm pinned to a specific version baked in, so it's not re-fetched per run and
# doesn't drift with whatever npm the base image happens to ship.
#
# The base image tag MUST match @playwright/test in package.json (browsers must
# match the runner). NPM_VERSION is the single source of truth in the root .env
# (passed via compose build args) — bump it there, not here.
FROM mcr.microsoft.com/playwright:v1.49.0-jammy

ARG NPM_VERSION
RUN npm install -g "npm@${NPM_VERSION}"
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
