Skip to content

Commit

Permalink
Embed trivy version in Docker (aquasecurity#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 authored Jul 7, 2019
1 parent 6af2d32 commit 9bfbff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /app/
RUN apk --no-cache add git
RUN go mod download
ADD . /app/
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /trivy cmd/trivy/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(git describe --tags --abbrev=0)" -a -o /trivy cmd/trivy/main.go

FROM alpine:3.9
RUN apk --no-cache add ca-certificates git
Expand Down

0 comments on commit 9bfbff9

Please sign in to comment.