# Node for the AI box runs (`npm run check:all`, `npm run check:related`): the Node major the Mac uses, plus
# Playwright's Chromium and its system libraries. PLAYWRIGHT_VERSION must match the installed
# @playwright/test (ci/remote-check.sh reads it).
FROM node:22-bookworm
ARG PLAYWRIGHT_VERSION
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN npx -y "playwright@${PLAYWRIGHT_VERSION}" install --with-deps chromium && chmod -R a+rX /ms-playwright
