Skip to content

Commit

Permalink
Adds trivy binary
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Dec 5, 2023
1 parent 5314c23 commit 6e62d8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ COPY main.go main.go
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o insights-handler main.go

# we pull the trivy binary from aquasec's alpine based image
FROM aquasec/trivy:0.48.0 as trivy

# Use distroless as minimal base image to package the insights-handler binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
#FROM gcr.io/distroless/static:nonroot

FROM alpine:3.18

COPY --from=trivy /usr/local/bin/trivy /usr/local/bin/trivy

WORKDIR /
COPY --from=builder /go/src/github.com/uselagoon/lagoon/services/insights-handler/insights-handler .

Expand Down

0 comments on commit 6e62d8f

Please sign in to comment.