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.
11 lines
169 B
Bash
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 "$@" |