mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 06:48:11 +08:00
29 lines
1.2 KiB
Docker
29 lines
1.2 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip procps tar wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/blackbox-exporter-0.20.0-0-linux-amd64-debian-10.tar.gz && \
|
|
echo "8fc956b21e6bc615ee3ca8aca4ec676be078bd49ec6ccfce01ea0a3d1cd53a85 /tmp/bitnami/pkg/cache/blackbox-exporter-0.20.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/blackbox-exporter-0.20.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/blackbox-exporter-0.20.0-0-linux-amd64-debian-10.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
|
|
|
|
ENV APP_VERSION="0.20.0" \
|
|
BITNAMI_APP_NAME="blackbox-exporter" \
|
|
PATH="/opt/bitnami/blackbox-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9115
|
|
|
|
WORKDIR /opt/bitnami/blackbox-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/blackbox-exporter/bin/blackbox_exporter" ]
|