Files
BookStack/dev/docker/entrypoint.node.sh
leon 5c4fc3dc2c fix: Docker: Add
git safe.directory config for bind-mounted repos.Mark
 /app as safe directory to handle Git 2.35+ ownership
 checks in Docker containers.
2025-12-31 11:53:22 +08:00

13 lines
300 B
Bash
Executable File

#!/bin/sh
# Git 2.35+ may refuse to operate on bind-mounted repos with differing ownership ("dubious ownership").
# Mark /app as safe within the container.
git config --global --add safe.directory /app 2>/dev/null || true
set -e
npm install
npm rebuild node-sass
SHELL=/bin/sh exec npm run watch