Commit Graph

3 Commits

Author SHA1 Message Date
Patrick 6f2f0e74af
feat: add configurable PORT for dev and start servers (#179)
- package.json: dev and start scripts now use ${PORT:-3000}
- Dockerfile: healthcheck uses ${PORT:-3000}, ENV PORT=3000 as default
- docker-compose.yml: passes PORT env to container, maps MC_PORT to PORT
- .env.example: documents PORT variable

Set PORT=<number> to change the listening port. Defaults to 3000.
Previously dev used Next.js default (3000) and start hardcoded 3005.
2026-03-05 11:00:34 +07:00
Bhavik Patel 49158507d8
fix: improve Docker build reliability and layer caching (#137)
- Fix deps stage: copy only package.json + pnpm-lock.yaml* for proper
  layer caching instead of COPY . . which invalidates cache on any change
- Copy node_modules from deps into build stage separately from source
- Copy schema.sql into runtime stage (migration 001_init reads it at
  runtime via process.cwd(), but standalone output omits source files)
- Remove broken public* glob COPY (no public/ dir exists; Docker COPY
  fails silently with incorrect glob syntax)
- docker-compose: add container_name, configurable port via MC_PORT,
  mark .env as optional to avoid startup failure if missing

Fixes #129
2026-03-04 16:57:00 +07:00
Nyk 299faf50e3 feat: add Docker support, session controls, model catalog, API rate limiting 2026-02-27 20:56:02 +07:00