fix: Configure safe directory for git in dockerfile

This commit is contained in:
leon
2025-12-31 13:46:26 +08:00
parent 5c4fc3dc2c
commit 018de5def3
3 changed files with 3 additions and 8 deletions

View File

@@ -1,9 +1,5 @@
#!/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