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 -------- #