mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
14 lines
347 B
Docker
14 lines
347 B
Docker
FROM gcr.io/distroless/static-debian12: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"]
|