Files
eventspace/backend/entrypoint.sh
Felipe Cardoso a88ebd40a7
All checks were successful
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Successful in 51s
Build and Push Docker Images / build-frontend (push) Has been skipped
Add database initialization for first superuser setup
Introduced a script to create the initial superuser during app startup if none exists. Updated the entrypoint to call this script and added stricter logging for passlib. Adjusted .env.template for a stronger default superuser password.
2025-03-04 18:54:00 +01:00

11 lines
169 B
Bash

#!/bin/bash
set -e
echo "Starting Backend"
# Apply database migrations
alembic upgrade head
python app/init_db.py
# Execute the command passed to docker run
exec "$@"