28 lines
1.2 KiB
Docker
28 lines
1.2 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip procps tar wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/mongodb-exporter-0.11.2-1-linux-amd64-debian-10.tar.gz && \
|
|
echo "714976773812283d013364bf130e55b8cf7f0e0fad2a8d2af7c986019077e0d5 /tmp/bitnami/pkg/cache/mongodb-exporter-0.11.2-1-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/mongodb-exporter-0.11.2-1-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/mongodb-exporter-0.11.2-1-linux-amd64-debian-10.tar.gz
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN ln -sf /opt/bitnami/mongodb-exporter/bin/mongodb_exporter /bin/mongodb_exporter
|
|
|
|
ENV BITNAMI_APP_NAME="mongodb-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.11.2-debian-10-r242" \
|
|
PATH="/opt/bitnami/mongodb-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9216
|
|
|
|
WORKDIR /opt/bitnami/mongodb-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "mongodb_exporter" ]
|