grype/Dockerfile
Christopher Angelo Phillips d4bcf161b5
Add arm64 image support and Darwin M1 support to .goreleaser.yaml (#477)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-25 16:56:55 +00:00

28 lines
780 B
Docker

FROM alpine:latest AS build
RUN apk --no-cache add ca-certificates
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
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name="grype"
LABEL org.label-schema.description="A vulnerability scanner for container images and filesystems"
LABEL org.label-schema.vcs-url=$VCS_URL
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vendor="Anchore, Inc."
LABEL org.label-schema.version=$BUILD_VERSION
ENTRYPOINT ["/grype"]