From b24b21742a8e498c8fab56feb04a6f33a69d0ce4 Mon Sep 17 00:00:00 2001 From: Hitesh Aringa Date: Mon, 25 Sep 2023 20:00:58 -0700 Subject: [PATCH] Fix docker VCS stamping added ```RUN git config --global --add safe.directory '/app'``` --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 04e55a99d..85b751811 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,8 @@ RUN apk update \ # Setup workig dir WORKDIR /app +RUN git config --global --add safe.directory '/app' + # Get dependancies - will also be cached if we won't change mod/sum COPY go.mod . COPY go.sum . @@ -78,4 +80,4 @@ COPY --from=cert-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-cert EXPOSE 3000 EXPOSE 3001 -ENTRYPOINT [ "/app/gitness", "server" ] \ No newline at end of file +ENTRYPOINT [ "/app/gitness", "server" ]