FROM golang:1.19.3-alpine AS build WORKDIR /app COPY . ./ RUN go mod download RUN go build -o /bin/prometheus-dnssec-exporter FROM alpine:3.16.3 COPY --from=build /bin/prometheus-dnssec-exporter /bin/prometheus-dnssec-exporter ENTRYPOINT [ "/bin/prometheus-dnssec-exporter" ]