osint-dashboard/app/docker-entrypoint.sh
Sirius DevOps 1b1f2d3b3a
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 2m59s
fix: merge alembic heads so the dashboard stops crash-looping
005_phase2 and 005_news_items both revised 004_camera_enum. Entrypoint
`alembic upgrade head` then failed and the app never bound :8000 (502
over Tailscale). Merge revision + `upgrade heads`.
2026-08-28 18:29:06 -04:00

12 lines
397 B
Bash

#!/usr/bin/env bash
# App entrypoint: apply migrations, then launch the API.
set -e
cd /app
echo "[entrypoint] running migrations..."
# `heads` (plural): parallel PRs can fork the chain (005_phase2 + 005_news_items).
# `upgrade head` then exits 255 and crash-loops the container.
alembic upgrade heads
echo "[entrypoint] starting uvicorn..."
exec uvicorn app.main:app --host 0.0.0.0 --port 8000