Update entrypoint.sh

This commit is contained in:
fuomag9
2025-11-05 00:29:26 +01:00
parent 114bf1b980
commit 71f4193410

View File

@@ -11,6 +11,9 @@ echo "Setting up database directory permissions..."
# Ensure the data directory is owned by nextjs user
chown -R nextjs:nodejs "$DB_DIR"
# Ensure node_modules is owned by nextjs user for Prisma client generation
chown -R nextjs:nodejs /app/node_modules
# Switch to nextjs user and initialize database if needed
gosu nextjs sh -c '
DB_PATH="'"$DB_PATH"'"