File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.20.4 as base
1
+ FROM golang:1.20.4 AS base
2
2
ARG VERSION
3
3
ARG GIT_COMMIT
4
4
ARG DATE
5
5
ARG TARGETARCH
6
6
7
7
WORKDIR /go/src/github.com/prometheus-community/postgres_exporter
8
8
9
- FROM base as builder
9
+ FROM base AS builder
10
10
COPY . .
11
11
RUN go mod tidy
12
12
RUN make build
13
13
RUN cp postgres_exporter /bin/postgres_exporter
14
14
15
- FROM scratch as scratch
15
+ FROM scratch AS scratch
16
16
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
17
17
EXPOSE 9187
18
18
USER 59000:59000
19
19
ENTRYPOINT [ "/bin/postgres_exporter" ]
20
20
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
22
22
COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter
23
23
EXPOSE 9187
24
24
USER 59000:59000
You can’t perform that action at this time.
0 commit comments