#!/bin/sh # Production entrypoint: apply migrations, then serve. set -eu cd /app echo "[entrypoint] applying database migrations..." alembic upgrade head echo "[entrypoint] starting uvicorn on :${PORT:-8000}" exec uvicorn app.main:app --host 0.0.0.0 --port "${PORT:-8000}"