Fix docker build failure (git safe directory) (#1836)

Git refuses to run `git rev-parse HEAD` now, in docker.
This commit is contained in:
Hector Sanjuan 2023-01-27 12:55:38 +00:00 committed by GitHub
parent 38b463d658
commit fc6ce30ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ WORKDIR $SRC_PATH
RUN go mod download
COPY --chown=1000:users . $SRC_PATH
RUN git config --global --add safe.directory /go/src/github.com/ipfs-cluster/ipfs-cluster
RUN make install

View File

@ -15,6 +15,7 @@ WORKDIR $SRC_PATH
RUN go mod download
COPY --chown=1000:users . $SRC_PATH
RUN git config --global --add safe.directory /go/src/github.com/ipfs-cluster/ipfs-cluster
RUN make install
#------------------------------------------------------

View File

@ -17,6 +17,7 @@ WORKDIR $SRC_PATH
RUN go mod download
COPY --chown=1000:users . $SRC_PATH
RUN git config --global --add safe.directory /go/src/github.com/ipfs-cluster/ipfs-cluster
RUN make install
#------------------------------------------------------