We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b436fd1 commit ac5a60cCopy full SHA for ac5a60c
Dockerfile
@@ -1,24 +1,24 @@
1
-FROM golang:1.20.4 as base
+FROM golang:1.20.4 AS base
2
ARG VERSION
3
ARG GIT_COMMIT
4
ARG DATE
5
ARG TARGETARCH
6
7
WORKDIR /go/src/github.com/prometheus-community/postgres_exporter
8
9
-FROM base as builder
+FROM base AS builder
10
COPY . .
11
RUN go mod tidy
12
RUN make build
13
RUN cp postgres_exporter /bin/postgres_exporter
14
15
-FROM scratch as scratch
+FROM scratch AS scratch
16
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
17
EXPOSE 9187
18
USER 59000:59000
19
ENTRYPOINT [ "/bin/postgres_exporter" ]
20
21
-FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.0 as ubi
+FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.2 AS ubi
22
23
24
0 commit comments