Skip to content

Commit ac5a60c

Browse files
authored
ÜPDATE ubi base image in order to fix OS vulnerabilities (#101)
1 parent b436fd1 commit ac5a60c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
FROM golang:1.20.4 as base
1+
FROM golang:1.20.4 AS base
22
ARG VERSION
33
ARG GIT_COMMIT
44
ARG DATE
55
ARG TARGETARCH
66

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

9-
FROM base as builder
9+
FROM base AS builder
1010
COPY . .
1111
RUN go mod tidy
1212
RUN make build
1313
RUN cp postgres_exporter /bin/postgres_exporter
1414

15-
FROM scratch as scratch
15+
FROM scratch AS scratch
1616
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
1717
EXPOSE 9187
1818
USER 59000:59000
1919
ENTRYPOINT [ "/bin/postgres_exporter" ]
2020

21-
FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.0 as ubi
21+
FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.2 AS ubi
2222
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
2323
EXPOSE 9187
2424
USER 59000:59000

0 commit comments

Comments
 (0)