add dockerfile + docker build step

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2021-03-11 16:45:20 -05:00
parent c7b26c55ac
commit e9105c180a
4 changed files with 129 additions and 112 deletions
+14
View File
@@ -0,0 +1,14 @@
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"]