mirror of
https://github.com/bitnami/containers.git
synced 2026-03-22 07:48:13 +08:00
21 lines
1.0 KiB
Docker
21 lines
1.0 KiB
Docker
FROM bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/consul-exporter-0.5.0-1-linux-amd64-debian-9.tar.gz && \
|
|
echo "f44ad37a22d61c65764974919319280408da71be06eec518c2eef2ba71c84e9c /tmp/bitnami/pkg/cache/consul-exporter-0.5.0-1-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/consul-exporter-0.5.0-1-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/consul-exporter-0.5.0-1-linux-amd64-debian-9.tar.gz
|
|
RUN ln -sf /opt/bitnami/consul-exporter/bin/consul_exporter /bin/consul_exporter
|
|
|
|
ENV BITNAMI_APP_NAME="consul-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.5.0-debian-9-r52" \
|
|
PATH="/opt/bitnami/consul-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9107
|
|
|
|
WORKDIR /opt/bitnami/consul-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "consul_exporter" ]
|