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