deploy(docker): support deploy with docker

This commit is contained in:
MingxuanGame
2025-08-10 08:28:01 +00:00
parent 8c18c8e519
commit 314fbf827b
9 changed files with 260 additions and 142 deletions

13
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
echo "Waiting for database connection..."
while ! nc -z $MYSQL_HOST $MYSQL_PORT; do
sleep 1
done
echo "Database connected"
echo "Running alembic..."
uv run --no-sync alembic upgrade head
exec "$@"