Files
containers/bitnami/postgres-exporter/0/debian-9/Dockerfile
2020-01-18 12:59:19 +00:00

22 lines
1.1 KiB
Docker

FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages ca-certificates curl procps sudo 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
RUN apt-get update && apt-get upgrade && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
ENV BITNAMI_APP_NAME="postgres-exporter" \
BITNAMI_IMAGE_VERSION="0.8.0-debian-9-r43" \
PATH="/opt/bitnami/postgres-exporter/bin:$PATH"
EXPOSE 9187
WORKDIR /opt/bitnami/postgres-exporter
USER 1001
ENTRYPOINT [ "postgres_exporter" ]