fix: Add entrypoint script to initialize database on container start

This commit is contained in:
2026-03-23 23:53:18 -03:00
parent 9847b4c5cc
commit 1916bc33e4
2 changed files with 14 additions and 0 deletions

11
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
# Wait for database to be ready
echo "Initializing database..."
# Apply migrations / create database schema
npx prisma db push --skip-generate
echo "Starting application..."
exec "$@"