Update entrypoint.sh
This commit is contained in:
@@ -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"'"
|
||||
|
||||
Reference in New Issue
Block a user