You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2026-10-23 12:08:57 +03:00
Copy LICENSE and NOTICE into the Docker image, matching what the release tarballs already ship and the prometheus/prometheus Dockerfile convention. Fixes #1206 Signed-off-by: Dean Chen <862469039@qq.com>
15 lines
385 B
Docker
15 lines
385 B
Docker
ARG ARCH="amd64"
|
|
ARG OS="linux"
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
|
|
|
ARG ARCH="amd64"
|
|
ARG OS="linux"
|
|
COPY .build/${OS}-${ARCH}/postgres_exporter /bin/postgres_exporter
|
|
COPY LICENSE /LICENSE
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 9187
|
|
USER nobody
|
|
ENTRYPOINT [ "/bin/postgres_exporter" ]
|