Fix docker build failure (git safe directory) (#1836)
Git refuses to run `git rev-parse HEAD` now, in docker.
This commit is contained in:
parent
38b463d658
commit
fc6ce30ac1
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
#------------------------------------------------------
|
||||
|
|
|
@ -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
|
||||
|
||||
#------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user