2022-11-22 14:49:36 +00:00
|
|
|
FROM gcr.io/distroless/static-debian11@sha256:5759d194607e472ff80fff5833442d3991dd89b219c96552837a2c8f74058617 AS build
|
2022-11-14 21:23:42 +00:00
|
|
|
|
2021-03-23 10:37:06 +00:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
# needed for version check HTTPS request
|
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
|
|
|
|
# create the /tmp dir, which is needed for image content cache
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
COPY grype /
|
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG BUILD_VERSION
|
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL
|
|
|
|
|
2022-01-21 21:58:51 +00:00
|
|
|
LABEL org.opencontainers.image.created=$BUILD_DATE
|
|
|
|
LABEL org.opencontainers.image.title="grype"
|
|
|
|
LABEL org.opencontainers.image.description="A vulnerability scanner for container images and filesystems"
|
|
|
|
LABEL org.opencontainers.image.source=$VCS_URL
|
|
|
|
LABEL org.opencontainers.image.revision=$VCS_REF
|
|
|
|
LABEL org.opencontainers.image.vendor="Anchore, Inc."
|
|
|
|
LABEL org.opencontainers.image.version=$BUILD_VERSION
|
|
|
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
2022-02-24 14:27:55 +00:00
|
|
|
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/anchore/grype/main/README.md"
|
|
|
|
LABEL io.artifacthub.package.logo-url="https://user-images.githubusercontent.com/5199289/136855393-d0a9eef9-ccf1-4e2b-9d7c-7aad16a567e5.png"
|
|
|
|
LABEL io.artifacthub.package.license="Apache-2.0"
|
2021-03-23 10:37:06 +00:00
|
|
|
|
2021-10-25 16:56:55 +00:00
|
|
|
ENTRYPOINT ["/grype"]
|