22 lines
1.1 KiB
Docker
22 lines
1.1 KiB
Docker
FROM bitnami/minideb:buster
|
|
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/memcached-exporter-0.6.0-0-linux-amd64-debian-10.tar.gz && \
|
|
echo "3ad9159caed91269681589e12f969ab60cf43d30fbc5bdbe2eb113a630301084 /tmp/bitnami/pkg/cache/memcached-exporter-0.6.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/memcached-exporter-0.6.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/memcached-exporter-0.6.0-0-linux-amd64-debian-10.tar.gz
|
|
RUN apt-get update && apt-get upgrade && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
|
|
ENV BITNAMI_APP_NAME="memcached-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.6.0-debian-10-r15" \
|
|
PATH="/opt/bitnami/memcached-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9150
|
|
|
|
WORKDIR /opt/bitnami/memcached-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "memcached_exporter" ]
|