blackbox-exporter-container/Dockerfile
Eliezer Croitoru 7eb26fd5fa 1
2024-11-01 14:40:49 +02:00

23 lines
438 B
Docker

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"]