Linora

0903. Container images and the prod-like stack

Status: Accepted (2026-11-28, O1). Extended by 0905 (LAN mode).

Context

Hosting is cloud-agnostic (PLAN wave 3): every tier ships as a Docker image. The images must be small, run as non-root, have healthchecks, and carry only each tier’s runtime dependencies. uWebSockets.js ships glibc-only binaries for 5 platforms x 3 Node ABIs (90 MB). A local stack shaped like production is needed to try the product and to smoke-test images in CI.

Decision

One multi-target deploy/Dockerfile (targets api, realtime, docworker, mcp, web), built from the repo root. Its build context is filtered by deploy/Dockerfile.dockerignore.

docker-compose.prod.yml (npm run prod:env once, then prod:up and prod:down):

Alternatives

Consequences