mirror of
https://github.com/anchore/syft.git
synced 2026-08-20 00:58:31 +02:00
--------- Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
15 lines
384 B
Docker
15 lines
384 B
Docker
ARG DEBIAN_VERSION=13
|
|
FROM gcr.io/distroless/static-debian${DEBIAN_VERSION}:latest AS build
|
|
|
|
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
|
|
|
|
ARG TARGETPLATFORM
|
|
COPY ${TARGETPLATFORM}/syft /
|
|
|
|
ENTRYPOINT ["/syft"]
|