File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- ARG ARCH="amd64"
2
- ARG OS="linux"
3
- FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
4
- LABEL maintainer=
"The Prometheus Authors <[email protected] >"
1
+ FROM --platform=$BUILDPLATFORM pscale.dev/wolfi-prod/go:1.23 AS build
2
+ ARG TARGETOS
3
+ ARG TARGETARCH
4
+ RUN apk --no-cache add curl
5
+ COPY . /postgres_exporter
6
+ RUN rm -f /postgres_exporter/postgres_exporter
7
+ RUN CGO_ENABLED=0 GOOS="$TARGETOS" GOARCH="$TARGETARCH" make -C /postgres_exporter build
5
8
6
- ARG ARCH="amd64"
7
- ARG OS="linux"
8
- COPY .build/${OS}-${ARCH}/postgres_exporter /bin/postgres_exporter
9
-
10
- EXPOSE 9187
11
- USER nobody
12
- ENTRYPOINT [ "/bin/postgres_exporter" ]
9
+ FROM pscale.dev/wolfi-prod/base:latest
10
+ COPY --from=build /postgres_exporter/postgres_exporter /bin/postgres_exporter
11
+ EXPOSE 9187
12
+ USER nobody
13
+ WORKDIR /
14
+ ENTRYPOINT ["/bin/postgres_exporter" ]
You can’t perform that action at this time.
0 commit comments