osint-dashboard/app/docker-entrypoint.sh
sirius0xdev 0a6da2f9c1
Some checks failed
build-and-deploy / build (push) Failing after 16s
Run migrations via entrypoint (alembic upgrade head) instead of nested asyncio.run in startup hook
2026-07-07 18:24:01 -04:00

10 lines
250 B
Bash

#!/usr/bin/env bash
# App entrypoint: apply migrations, then launch the API.
set -e
cd /app
echo "[entrypoint] running migrations..."
alembic upgrade head
echo "[entrypoint] starting uvicorn..."
exec uvicorn app.main:app --host 0.0.0.0 --port 8000