Skip to content

Commit

Permalink
adds: git in container which is required for go build
Browse files Browse the repository at this point in the history
  • Loading branch information
Suvarna Rokade committed Mar 22, 2022
1 parent b34f65a commit 09e6ac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------- #
Expand Down

0 comments on commit 09e6ac1

Please sign in to comment.