✨ feat(container): serve the SPA with Bun, drop nginx
Replace the nginx serving stage with a small Bun.serve script (server.ts)
that serves the built dist/ and reverse-proxies /api/* to the backend —
both plain HTTP and the exam-room WebSocket (forwarding the session
cookie), stripping the /api prefix exactly as nginx did. Same-origin is
preserved, so no CORS/cookie changes. (nginx.conf + its whitelist test
were removed in the prior commit.)
Multi-stage Containerfile: bun build -> bun:1-slim runtime running
server.ts (no node_modules — server.ts uses only Bun built-ins).
BACKEND_ORIGIN points the proxy at the backend on the compose network;
healthcheck moves to a bun one-liner (slim image has no curl). Verified
end-to-end under podman compose: SPA + asset caching + /api proxy + a
live exam WS state frame round-tripping through the bridge on :5173.