Dockerize and run
The repo ships a dev image (Vite dev server) and a production multi-stage image (nginx serving static files). Both target Node 26.
Dev (with HMR)
shdocker compose up # http://localhost:5173, HMR via CHOKIDAR_USEPOLLING
The compose file binds ./ into the container and protects node_modules with an anonymous volume, so pnpm install runs once.
Production
shdocker build -t <image> . # multi-stage: install → build → nginx docker run --rm -p 8080:80 <image> # http://localhost:8080
nginx serves dist/, sends deep links to index.html (SPA fallback), and caches hashed assets immutably.
Requirements / gotchas
pnpm-lock.yamlmust be committed (production build usespnpm install --frozen-lockfile).pnpm-workspace.yamlis copied next to the lockfile; without it pnpm 12 rejects the frozen install (ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE).- Node 25+ images don't bundle corepack, so the Dockerfiles install a pinned
corepackfrom npm; it then provisions the pnpm version frompackageManager. - E2E (Playwright) and its browsers are not in the production image — run those locally or in CI.


