23 lines
1.2 KiB
Docker
23 lines
1.2 KiB
Docker
FROM bitnami/minideb:buster
|
|
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/mongodb-exporter-0.10.0-0-linux-amd64-debian-10.tar.gz && \
|
|
echo "308f7bff3964fc962b7371abab7765b12be52a82cff6d67423a1c54e26b1d19d /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-10.tar.gz
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN ln -sf /opt/bitnami/mongodb-exporter/bin/mongodb_exporter /bin/mongodb_exporter
|
|
|
|
ENV BITNAMI_APP_NAME="mongodb-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.10.0-debian-10-r50" \
|
|
PATH="/opt/bitnami/mongodb-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9216
|
|
|
|
WORKDIR /opt/bitnami/mongodb-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "mongodb_exporter" ]
|