From 71648680809fbf10804f568ac0d39f02988d960b Mon Sep 17 00:00:00 2001 From: Suvarna Rokade Date: Tue, 22 Mar 2022 10:22:27 +0530 Subject: [PATCH] adds: git in container which is required for go build (#1193) Co-authored-by: Suvarna Rokade --- build/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index b36627dd1..bcc8c860a 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -16,7 +16,8 @@ RUN apk add -U build-base COPY . . # build binary -RUN CGO_ENABLED=${CGO_ENABLED_VAL} GOOS=${GOOS_VAL} GOARCH=${GOARCH_VAL} go build -v -ldflags "-w -s" -o /go/bin/terrascan ./cmd/terrascan +RUN apk update && apk add git && \ + CGO_ENABLED=${CGO_ENABLED_VAL} GOOS=${GOOS_VAL} GOARCH=${GOARCH_VAL} go build -v -ldflags "-w -s" -o /go/bin/terrascan ./cmd/terrascan # -------- prod stage -------- #