Change commands.

This commit is contained in:
2022-07-06 14:00:22 +02:00
parent da81d87f7b
commit 06a0f1c2d3

View File

@@ -10,4 +10,5 @@ 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 9162 3551/tcp 3551/udp
ENTRYPOINT /sbin/apcupsd -b && /sbin/apcupsd_exporter -apcupsd.addr localhost:3551
CMD /sbin/apcupsd_exporter -apcupsd.addr localhost:3551 &
ENTRYPOINT /sbin/apcupsd -b