fix: Create home directory for nextjs user to fix npm permissions

This commit is contained in:
2026-03-24 09:02:54 -03:00
parent 3ff5e6b031
commit f6218283f1
2 changed files with 9 additions and 3 deletions

View File

@@ -4,11 +4,12 @@ set -e
# Initialize database if it doesn't exist or schema changed
echo "Checking database..."
# Create data directory if it doesn't exist
# Create directories with proper permissions
mkdir -p /app/data
mkdir -p /app/.npm
# Push schema (safe - won't overwrite data, only syncs schema)
npx prisma db push --skip-generate --skip-pull
npm exec -- prisma db push --skip-generate --skip-pull
echo "Starting application..."
exec "$@"