Files
LMS/backend/entrypoint.sh
T

10 lines
238 B
Bash

#!/bin/sh
# Docker entrypoint: wait for Postgres, run migrations, then start the app.
set -e
echo "⏳ Running Alembic migrations..."
alembic upgrade head
echo "🚀 Starting FastAPI..."
exec uvicorn main:app --host 0.0.0.0 --port 8000