blackbox-exporter-container/Dockerfile

23 lines
438 B
Docker
Raw Normal View History

2024-11-01 14:40:49 +02:00
FROM alpine:latest
ARG TARGETOS
ARG TARGETARCH
RUN apk update && apk add --no-cache supervisor && mkdir -p /opt/blackbox_exporter/etc
ADD build-dir/${TARGETOS}/${TARGETARCH}/blackbox_exporter /opt/blackbox_exporter/
ADD supervisord.conf /etc/supervisord.conf
ADD start-blackbox.sh /start-blackbox.sh
ADD start.sh /start.sh
RUN chmod +x /opt/blackbox_exporter/blackbox_exporter
EXPOSE 9115
WORKDIR /
CMD ["/bin/sh", "/start.sh"]