40 lines
1.8 KiB
Docker
40 lines
1.8 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
|
org.opencontainers.image.description="Application packaged by Bitnami" \
|
|
org.opencontainers.image.ref.name="0.10.0-debian-11-r32" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/nginx-exporter" \
|
|
org.opencontainers.image.title="nginx-exporter" \
|
|
org.opencontainers.image.vendor="VMware, Inc." \
|
|
org.opencontainers.image.version="0.10.0"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip procps tar
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f nginx-exporter-0.10.0-153-linux-amd64-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/nginx-exporter-0.10.0-153-linux-amd64-debian-11.tar.gz -O ; \
|
|
fi && \
|
|
echo "3439b07150abe46bd743f07fc12d4507996d18d6d954da1bbeae9c67441444fe nginx-exporter-0.10.0-153-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
|
tar -zxf nginx-exporter-0.10.0-153-linux-amd64-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf nginx-exporter-0.10.0-153-linux-amd64-debian-11.tar.gz
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN ln -sf /opt/bitnami/nginx-exporter/bin/nginx-prometheus-exporter /usr/bin/exporter
|
|
|
|
ENV APP_VERSION="0.10.0" \
|
|
BITNAMI_APP_NAME="nginx-exporter" \
|
|
PATH="/opt/bitnami/nginx-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9113
|
|
|
|
WORKDIR /opt/bitnami/nginx-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "nginx-prometheus-exporter" ]
|