FROM bitnami/minideb:jessie as buildenv RUN install_packages ca-certificates wget RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/elasticsearch-exporter-1.0.2-1-linux-x64-debian-8.tar.gz && \ echo "9948a76a3febbb542a56fd627a4b8db1b7e98be570e09310fc71cdd0c4c9e655 /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-1-linux-x64-debian-8.tar.gz" | sha256sum -c - && \ tar -zxf /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-1-linux-x64-debian-8.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \ rm -rf /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-1-linux-x64-debian-8.tar.gz ################## FROM bitnami/minideb:jessie LABEL maintainer "Bitnami " COPY --from=buildenv /opt/bitnami/elasticsearch-exporter /opt/bitnami/elasticsearch-exporter ENV BITNAMI_APP_NAME="elasticsearch-exporter" \ BITNAMI_IMAGE_VERSION="1.0.2-r41" \ PATH="/opt/bitnami/elasticsearch-exporter/bin:$PATH" EXPOSE 9108 WORKDIR /opt/bitnami/elasticsearch-exporter USER 1001 ENTRYPOINT ["/opt/bitnami/elasticsearch-exporter/bin/elasticsearch_exporter"]