From 0ab495455cb5daabdc0158e9cfa9554657da938c Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Thu, 16 Mar 2023 08:39:55 +0000 Subject: [PATCH] Adds /var/www/discourse as a safe git directory. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1a95c30..0a1b474 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,8 @@ RUN apt-get update && apt-get install -y jq WORKDIR /var/www/discourse -RUN git remote set-branches --add origin ${DISCOURSE_VERSION} &&\ +RUN git config --global --add safe.directory /var/www/discourse &&\ + git remote set-branches --add origin ${DISCOURSE_VERSION} &&\ git fetch --depth 1 origin ${DISCOURSE_VERSION} &&\ sudo -u discourse bundle config --local deployment true &&\ sudo -u discourse bundle config --local path ./vendor/bundle &&\ -- GitLab