Produces a python:3.12-slim-bookworm image that runs migrations (with the pre-upgrade backup hook) then uvicorn under uid/gid 1000:1000, as required by the /mnt/quartermaster/ bind mount on the deploy host. HEALTHCHECK hits /healthz; uvicorn is pointed at logconfig.json so access logs land on stdout as JSON. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
11 lines
185 B
Bash
Executable file
11 lines
185 B
Bash
Executable file
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
cd /app
|
|
|
|
alembic upgrade head
|
|
|
|
exec uvicorn quartermaster.main:app \
|
|
--host 0.0.0.0 \
|
|
--port 8000 \
|
|
--log-config src/quartermaster/logconfig.json
|