mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
add dockerfile + docker build step
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
+14
@@ -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"]
|
||||
Reference in New Issue
Block a user