21 lines
1.1 KiB
Docker
21 lines
1.1 KiB
Docker
FROM bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl procps unzip wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/apache-exporter-0.7.0-0-linux-amd64-debian-9.tar.gz && \
|
|
echo "0d96516814bb4d54e0e672235d2da8c6a689fc97e5c399a65e5f8b993ea7a5b4 /tmp/bitnami/pkg/cache/apache-exporter-0.7.0-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/apache-exporter-0.7.0-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/apache-exporter-0.7.0-0-linux-amd64-debian-9.tar.gz
|
|
RUN ln -sf /opt/bitnami/apache-exporter/bin/apache_exporter /bin/apache_exporter
|
|
|
|
ENV BITNAMI_APP_NAME="apache-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.7.0-debian-9-r141" \
|
|
PATH="/opt/bitnami/apache-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9117
|
|
|
|
WORKDIR /opt/bitnami/apache-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "apache_exporter" ]
|