Skip to content

Commit

Permalink
Fix git unsafe directory in Docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed May 10, 2022
1 parent 0230155 commit e841ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENV CGO_ENABLED=0
ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"

RUN apk add --no-cache ca-certificates tzdata make git bash protobuf
RUN git config --global --add safe.directory $PROJECT_PATH

RUN mkdir -p $PROJECT_PATH
COPY . $PROJECT_PATH
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-devel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
RUN apk add --no-cache ca-certificates tzdata make git bash protobuf rpm redis

RUN git clone https://github.com/protocolbuffers/protobuf.git /protobuf
RUN git config --global --add safe.directory $PROJECT_PATH

RUN mkdir -p $PROJECT_PATH
COPY . $PROJECT_PATH
Expand Down

0 comments on commit e841ecd

Please sign in to comment.