Skip to content

Commit 2258c78

Browse files
ihor-svizievramunasd
authored andcommitted
fix: add safe.directory configuration for git in Dockerfile
1 parent ba1ef67 commit 2258c78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/php/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ COPY php.ini /usr/local/etc/php/conf.d/satisfy.ini
1313

1414
USER www-data
1515
RUN mkdir -p ~/.ssh && chmod 0700 ~/.ssh && ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \
16-
mkdir -p ~/.composer && chown www-data:www-data ~/.composer
16+
mkdir -p ~/.composer && chown www-data:www-data ~/.composer && \
17+
git config --global --add safe.directory /var/www/html
1718

1819
USER root
20+
RUN git config --system --add safe.directory /var/www/html

0 commit comments

Comments
 (0)