osint-dashboard/app/docker-entrypoint.sh

11 lines
250 B
Bash
Raw Permalink Normal View History

#!/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