FROM alpine:latest

RUN apk add ca-certificates
ADD notary /notary
RUN chmod a+x /notary

# --------------------------------

FROM scratch

COPY --from=0 /etc/ssl/certs /etc/ssl/certs
COPY --from=0 /notary        /notary

ENTRYPOINT ["/notary"]
