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

@@ -14,6 +14,9 @@ RUN apt-get update && \
wait-for-it && \
rm -rf /var/lib/apt/lists/*
# Mark /app as safe for Git >= 2.35.2
RUN git config --system --add safe.directory /app
# Install PHP extensions
RUN docker-php-ext-configure ldap --with-libdir="lib/$(gcc -dumpmachine)" && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \