bitnami-containers/bitnami/postgres-exporter/0/debian-9/Dockerfile

20 lines
1010 B
Docker

FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages ca-certificates curl procps unzip wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/postgres-exporter-0.8.0-0-linux-amd64-debian-9.tar.gz && \
echo "bfcac0cb9a0b96e87da5c743d5bf101ff450da2128f64a1bc066371607524507 /tmp/bitnami/pkg/cache/postgres-exporter-0.8.0-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/postgres-exporter-0.8.0-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/postgres-exporter-0.8.0-0-linux-amd64-debian-9.tar.gz
ENV BITNAMI_APP_NAME="postgres-exporter" \
BITNAMI_IMAGE_VERSION="0.8.0-debian-9-r15" \
PATH="/opt/bitnami/postgres-exporter/bin:$PATH"
EXPOSE 9187
WORKDIR /opt/bitnami/postgres-exporter
USER 1001
ENTRYPOINT [ "postgres_exporter" ]