From 2f05cda0cecd4a958da02939799ac81683e38bf1 Mon Sep 17 00:00:00 2001 From: Jaime Yera Hidalgo Date: Wed, 5 Jun 2024 12:25:34 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9CPDATE=20ubi=20base=20image=20in=20order?= =?UTF-8?q?=20to=20fix=20OS=20vulnerabilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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