mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
fix: Configure safe directory for git in dockerfile
This commit is contained in:
@@ -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 && \
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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
|
||||
|
||||
env
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user