fix: drop :latest tag from CI, make worker count configurable #116

Merged
cal merged 2 commits from fix/ci-tags-and-workers into main 2026-04-09 16:32:56 +00:00

2 Commits

Author SHA1 Message Date
Cal Corum
6efba473a0 fix: use exec form CMD so uvicorn receives SIGTERM as PID 1
Shell form CMD makes /bin/sh PID 1 — SIGTERM from docker stop goes to
the shell, not uvicorn, causing SIGKILL after the stop timeout instead
of graceful shutdown. Using CMD ["sh", "-c", "exec uvicorn ..."] lets
the shell expand $WEB_WORKERS then exec-replaces itself with uvicorn,
restoring correct signal delivery.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 09:01:18 -05:00
Cal Corum
0095d2a792 fix: drop :latest tag from CI, make worker count configurable
Remove :latest Docker tag to match Paper Dynasty convention — only
:version and :environment tags are pushed. Add WEB_WORKERS env var
to Dockerfile (default 2) so prod can override via docker-compose.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 08:41:47 -05:00