Skip to content

Commit

Permalink
ÜPDATE ubi base image in order to fix OS vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeyh committed Jun 5, 2024
1 parent 45fb13d commit 2f05cda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/prometheus/golang-builder as builder
FROM quay.io/prometheus/golang-builder AS builder

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Scan results for localbuild/elasticsearch-exporter:latest

warn dockerfile

warn dockerfile:instruction Dockerfile directive 'HEALTHCHECK' not found, matching condition 'not_exists' check

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Scan results for localbuild/elasticsearch-exporter:latest

warn dockerfile

warn dockerfile:instruction Dockerfile directive 'USER' not found, matching condition 'not_exists' check

ARG PROMU_VERSION=0.13.0
ADD https://github.com/prometheus/promu/releases/download/v${PROMU_VERSION}/promu-${PROMU_VERSION}.linux-amd64.tar.gz ./
Expand All @@ -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

Expand Down

0 comments on commit 2f05cda

Please sign in to comment.