Skip to content

Commit

Permalink
Merge pull request #1123 from skrashevich/fix-vcs-tags-in-docker-builds
Browse files Browse the repository at this point in the history
add git to build stage
  • Loading branch information
AlexxIT committed May 18, 2024
2 parents b2399f3 + 3952f0b commit 9143729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ENV GOARCH=${TARGETARCH}

WORKDIR /build

RUN apk add git

# Cache dependencies
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/root/.cache/go-build go mod download
Expand Down

0 comments on commit 9143729

Please sign in to comment.