File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,16 @@ FROM golang:1.19-alpine as build
33WORKDIR ${GOPATH}/src/github.com/quintoandar
44RUN apk update && apk add make git curl && git clone --branch main https://github.com/quintoandar/postgres_exporter.git
55WORKDIR ${GOPATH}/src/github.com/quintoandar/postgres_exporter
6- ENV GOARCH=amd64
76RUN make release
87RUN chmod +x postgres_exporter && mv postgres_exporter /tmp/postgres_exporter
98
9+
1010FROM quay.io/prometheus/busybox:latest as final
11- LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
1211
13- COPY --from=build ["/tmp/postgres_exporter" , "/bin/postgres_exporter" ]
12+ COPY --from=build ["/tmp/postgres_exporter" , "/" ]
13+
14+ WORKDIR /opt/exporter
15+
16+ EXPOSE 9187
1417
15- EXPOSE 9187
16- USER nobody
17- ENTRYPOINT [ "/bin/postgres_exporter" ]
18+ ENTRYPOINT [ "/postgres_exporter" ]
You can’t perform that action at this time.
0 commit comments