github.com/khulnasoft/trivy@v0.48.1-0.20231207234930-27df843a75e0/Dockerfile.canary (about)

     1  FROM alpine:3.18.5
     2  RUN apk --no-cache add ca-certificates git
     3  
     4  # binaries were created with GoReleaser
     5  # need to copy binaries from folder with correct architecture
     6  # example architecture folder: dist/trivy_canary_build_linux_arm64/trivy
     7  # GoReleaser adds _v* to the folder name, but only when GOARCH is amd64 
     8  ARG TARGETARCH
     9  COPY "dist/trivy_canary_build_linux_${TARGETARCH}*/trivy" /usr/local/bin/trivy
    10  COPY contrib/*.tpl contrib/
    11  ENTRYPOINT ["trivy"]