File: Dockerfile

package info (click to toggle)
prometheus-postgres-exporter 0.8.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 456 kB
  • sloc: sh: 416; makefile: 19
file content (15 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM debian:7.11-slim
RUN useradd -u 20001 postgres_exporter

FROM scratch

COPY --from=0 /etc/passwd /etc/passwd
USER postgres_exporter

ARG binary

COPY $binary /postgres_exporter

EXPOSE 9187

ENTRYPOINT [ "/postgres_exporter" ]