forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to ContainerfileClear filter

2026-07-23

✨ feat(container): serve the SPA with Bun, drop nginxAhmet Kaan Gümüş · 4f9c8ec
✨ 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.

2026-07-12