Skip to content

Commit

Permalink
Merge pull request #3115 from crazy-max/dev-disable-vcs
Browse files Browse the repository at this point in the history
Dockerfile: set code dir as git safe directory
  • Loading branch information
thaJeztah committed Feb 7, 2023
2 parents 2805c9a + 9850df9 commit 8892b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -9,6 +9,7 @@ FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bullseye AS gobase
ARG DEBIAN_FRONTEND
RUN apt-get update && apt-get install -y --no-install-recommends git make rsync
WORKDIR /go/src/github.com/docker/swarmkit
RUN git config --global --add safe.directory /go/src/github.com/docker/swarmkit

FROM gobase AS packages
RUN --mount=target=. \
Expand Down

0 comments on commit 8892b33

Please sign in to comment.