Revert "Add the ability to run syft from a scratch image."

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2020-12-16 16:54:34 -05:00
committed by Alex Goodman
parent 688aa2e832
commit a56292e2e0
4 changed files with 0 additions and 50 deletions
-20
View File
@@ -1,20 +0,0 @@
FROM alpine:latest AS build
# add required ca-certificates for https request.
RUN apk --no-cache add ca-certificates
# create empty directory for scratch image cache.
RUN mkdir -p /tmp-syft
# reduce container image to scratch size.
FROM scratch
# Copy directories and files needed to execute syft.
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /tmp-syft /tmp
# copy syft binary to rootfs
COPY syft /
# default path
ENTRYPOINT ["/syft"]