add git to build stage

This commit is contained in:
Sergey Krashevich
2024-05-18 13:44:51 +03:00
parent b2399f3bb3
commit 3952f0ba0f
+2
View File
@@ -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