fix: Add entrypoint script to initialize database on container start
This commit is contained in:
11
docker-entrypoint.sh
Normal file
11
docker-entrypoint.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user