From afcee831cc62a56a6128960bad9bf4bcf59f403a Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 24 Dec 2023 01:16:53 -0800 Subject: [PATCH] silence git safe directory commands Signed-off-by: Tamal Saha --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 538421c..a64bb04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,10 @@ RUN set -x \ && apt-get install -y --no-install-recommends apt-utils ca-certificates wget git bash mercurial bzr xz-utils socat build-essential gcc protobuf-compiler \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/* +# https://stackoverflow.com/a/73100228 +RUN set -x \ + && git config --global --add safe.directory '*' + # https://github.com/gardener/gardener/issues/289 RUN set -x \ && mkdir -p /go/src/k8s.io \