File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ RUN apt-get update && \
1414 wait-for-it && \
1515 rm -rf /var/lib/apt/lists/*
1616
17+ # Mark /app as safe for Git >= 2.35
18+ RUN git config --system --add safe.directory /app
19+
1720# Install PHP extensions
1821RUN docker-php-ext-configure ldap --with-libdir="lib/$(gcc -dumpmachine)" && \
1922 docker-php-ext-configure gd --with-freetype --with-jpeg && \
@@ -36,3 +39,6 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
3639ENV APACHE_DOCUMENT_ROOT="/app/public"
3740
3841WORKDIR /app
42+
43+
44+
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Git 2.35+ may refuse to operate on bind-mounted repos with differing ownership ("dubious ownership").
4- # Mark /app as safe within the container.
5- git config --global --add safe.directory /app 2> /dev/null || true
6-
73set -e
84
95env
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # Git 2.35+ may refuse to operate on bind-mounted repos with differing ownership ("dubious ownership").
4- # Mark /app as safe within the container.
5- git config --global --add safe.directory /app 2> /dev/null || true
6-
73set -e
84
95npm install
You can’t perform that action at this time.
0 commit comments