bitnami-containers/bitnami/redis-exporter/1/debian-9/Dockerfile

22 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 sudo unzip wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/redis-exporter-1.3.5-0-linux-amd64-debian-9.tar.gz && \
echo "d217d53560a8b04e1b9bd7c77939918f083c099bd5bbd12bebf61fd644127032 /tmp/bitnami/pkg/cache/redis-exporter-1.3.5-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/redis-exporter-1.3.5-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/redis-exporter-1.3.5-0-linux-amd64-debian-9.tar.gz
RUN apt-get update && apt-get upgrade && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
ENV BITNAMI_APP_NAME="redis-exporter" \
BITNAMI_IMAGE_VERSION="1.3.5-debian-9-r25" \
PATH="/opt/bitnami/redis-exporter/bin:$PATH"
EXPOSE 9121
WORKDIR /opt/bitnami/redis-exporter
USER 1001
ENTRYPOINT [ "redis_exporter" ]