Skip to content

Commit

Permalink
ÜPDATE ubi base image in order to fix OS vulnerabilities (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeyh authored Jun 5, 2024
1 parent b436fd1 commit ac5a60c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
FROM golang:1.20.4 as base
FROM golang:1.20.4 AS base

Check warning on line 1 in Dockerfile

View workflow job for this annotation

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

warn dockerfile

warn dockerfile:instruction Dockerfile directive 'HEALTHCHECK' not found, matching condition 'not_exists' check
ARG VERSION
ARG GIT_COMMIT
ARG DATE
ARG TARGETARCH

WORKDIR /go/src/github.com/prometheus-community/postgres_exporter

FROM base as builder
FROM base AS builder
COPY . .
RUN go mod tidy
RUN make build
RUN cp postgres_exporter /bin/postgres_exporter

FROM scratch as scratch
FROM scratch AS scratch
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
EXPOSE 9187
USER 59000:59000
ENTRYPOINT [ "/bin/postgres_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 /bin/postgres_exporter /bin/postgres_exporter
EXPOSE 9187
USER 59000:59000
Expand Down

0 comments on commit ac5a60c

Please sign in to comment.