24 lines
1.1 KiB
Docker
24 lines
1.1 KiB
Docker
FROM bitnami/oraclelinux-extras:7-r77 as buildenv
|
|
|
|
RUN install_packages ca-certificates wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/blackbox-exporter-0.12.0-1-linux-x86_64-ol-7.tar.gz && \
|
|
echo "60441332fb324e9f69caa7218608fe82998fbcb5ec83381036098fc7bb550650 /tmp/bitnami/pkg/cache/blackbox-exporter-0.12.0-1-linux-x86_64-ol-7.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/blackbox-exporter-0.12.0-1-linux-x86_64-ol-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/blackbox-exporter-0.12.0-1-linux-x86_64-ol-7.tar.gz
|
|
|
|
##################
|
|
|
|
FROM bitnami/oraclelinux-extras:7-r77
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
COPY --from=buildenv /opt/bitnami/blackbox-exporter /opt/bitnami/blackbox-exporter
|
|
ENV BITNAMI_APP_NAME="blackbox-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.12.0-ol-7-r52" \
|
|
PATH="/opt/bitnami/blackbox-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9115
|
|
|
|
WORKDIR /opt/bitnami/blackbox-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/blackbox-exporter/bin/blackbox_exporter" ]
|