prometheus-upsc-exporter/Dockerfile
2019-07-14 15:50:14 +02:00

15 lines
375 B
Docker

FROM alpine:latest
MAINTAINER Jack Halford [jack.0x5.be]
# nut is in testing
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
# busybox-extras for inetd
RUN apk update && apk add busybox-extras nut bash gawk
COPY http_wrapper.sh /
COPY upsc_exporter.sh /
COPY upsc_to_prometheus.awk /
COPY inetd.conf /etc/
ENTRYPOINT ["inetd", "-f"]