From c4b516f28a7493cc62a987f8404a41b22025ba75 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Wed, 6 Jul 2022 13:46:24 +0200 Subject: [PATCH] Undo apcupsd exporter as binary doesn't run. --- Dockerfile | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf86cc6..aeda274 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,8 @@ -FROM golang:alpine AS build -MAINTAINER chris -RUN apk add git --no-cache && \ - git clone https://github.com/mdlayher/apcupsd_exporter /tmp/build && \ - cd /tmp/build && \ - go build -o /go/bin/apcupsd_exporter - FROM alpine:latest -RUN apk update && apk upgrade -RUN apk add --no-cache libusb apcupsd +RUN apk update && apk upgrade && apk add --no-cache libusb apcupsd COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf -COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter +EXPOSE 3551/tcp 3551/udp -EXPOSE 9162 3551/tcp 3551/udp - -ENTRYPOINT /sbin/apcupsd -b && /sbin/apcupsd_exporter -apcupsd.addr localhost:3551 +ENTRYPOINT /sbin/apcupsd -b