# Dev image for the Vite SPA: node:22-alpine with npm pinned to a specific # version baked in, so it's not re-installed on every container start and # doesn't drift with whatever npm the base image happens to ship. # # NPM_VERSION is the single source of truth in the root .env (passed via compose # build args). Bump it there, not here. FROM node:22-alpine ARG NPM_VERSION RUN npm install -g "npm@${NPM_VERSION}" ENV NPM_CONFIG_UPDATE_NOTIFIER=false