mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
15 lines
323 B
Docker
15 lines
323 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 syft /
|
|
|
|
ENTRYPOINT ["/syft"]
|