mirror of
https://github.com/anchore/syft
synced 2024-09-20 14:11:54 +00: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"]
|