diff --git a/bitnami/mongodb-exporter/0/debian-11/Dockerfile b/bitnami/mongodb-exporter/0/debian-11/Dockerfile index b30b5a816116..0c24520cfdcf 100644 --- a/bitnami/mongodb-exporter/0/debian-11/Dockerfile +++ b/bitnami/mongodb-exporter/0/debian-11/Dockerfile @@ -6,7 +6,7 @@ ENV HOME="/" \ LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ - org.opencontainers.image.ref.name="0.34.0-debian-11-r6" \ + org.opencontainers.image.ref.name="0.34.0-debian-11-r7" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb-exporter" \ org.opencontainers.image.title="mongodb-exporter" \ org.opencontainers.image.vendor="VMware, Inc." \ @@ -15,11 +15,12 @@ LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ COPY prebuildfs / SHELL ["/bin/bash", "-o", "pipefail", "-c"] # 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.34.0-1-linux-amd64-debian-11.tar.gz && \ - echo "f554b5e8ee5fbe7d0820bf7d452b4790dbb6c7942a609a03a1f086d52b8e9701 /tmp/bitnami/pkg/cache/mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ - tar -zxf /tmp/bitnami/pkg/cache/mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \ - rm -rf /tmp/bitnami/pkg/cache/mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz +RUN install_packages ca-certificates curl gzip procps tar +RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz -o mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz && \ + echo "f554b5e8ee5fbe7d0820bf7d452b4790dbb6c7942a609a03a1f086d52b8e9701 mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ + tar -zxf mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --wildcards '*/files' && \ + rm -rf mongodb-exporter-0.34.0-1-linux-amd64-debian-11.tar.gz RUN apt-get update && apt-get upgrade -y && \ rm -r /var/lib/apt/lists /var/cache/apt/archives RUN chmod g+rwX /opt/bitnami diff --git a/bitnami/mongodb-exporter/README.md b/bitnami/mongodb-exporter/README.md index a41166695635..473d54fc9b98 100644 --- a/bitnami/mongodb-exporter/README.md +++ b/bitnami/mongodb-exporter/README.md @@ -32,7 +32,7 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`0`, `0-debian-11`, `0.34.0`, `0.34.0-debian-11-r6`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mongodb-exporter/0/debian-11/Dockerfile) +* [`0`, `0-debian-11`, `0.34.0`, `0.34.0-debian-11-r7`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mongodb-exporter/0/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).