mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 lines
454 B
Docker
12 lines
454 B
Docker
FROM alpine:3.19.0
|
|
RUN apk --no-cache add ca-certificates git
|
|
|
|
# binaries were created with GoReleaser
|
|
# need to copy binaries from folder with correct architecture
|
|
# example architecture folder: dist/trivy_canary_build_linux_arm64/trivy
|
|
# GoReleaser adds _v* to the folder name, but only when GOARCH is amd64
|
|
ARG TARGETARCH
|
|
COPY "dist/trivy_canary_build_linux_${TARGETARCH}*/trivy" /usr/local/bin/trivy
|
|
COPY contrib/*.tpl contrib/
|
|
ENTRYPOINT ["trivy"]
|