diff --git a/Dockerfile b/Dockerfile index 2a9b162f..938193ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/prometheus/golang-builder as builder +FROM quay.io/prometheus/golang-builder AS builder ARG PROMU_VERSION=0.13.0 ADD https://github.com/prometheus/promu/releases/download/v${PROMU_VERSION}/promu-${PROMU_VERSION}.linux-amd64.tar.gz ./ @@ -10,14 +10,14 @@ WORKDIR /go/src/github.com/prometheus-community/elasticsearch_exporter RUN go mod download RUN make -FROM scratch as scratch +FROM scratch AS scratch COPY --from=builder /go/src/github.com/prometheus-community/elasticsearch_exporter/elasticsearch_exporter /bin/elasticsearch_exporter EXPOSE 9114 ENTRYPOINT [ "/bin/elasticsearch_exporter" ] -FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.0 as ubi +FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.2 AS ubi COPY --from=builder /go/src/github.com/prometheus-community/elasticsearch_exporter/elasticsearch_exporter /bin/elasticsearch_exporter