FROM golang:stretch as builder COPY . /opt WORKDIR /opt RUN make build FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /opt/bin/chainlink_exporter / CMD ["/chainlink_exporter"]