Create entrypoint.sh.

This commit is contained in:
Christian Steinle
2022-07-11 08:09:50 +02:00
parent 925f433dd5
commit 3a5b050f01
2 changed files with 8 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ RUN apk add git --no-cache && \
FROM alpine:latest
RUN apk update && apk upgrade && apk add --no-cache libusb apcupsd
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
COPY entrypoint.sh /sbin/entrypoint.sh
COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter
EXPOSE 9162 3551/tcp 3551/udp
ENTRYPOINT /sbin/apcupsd -b
CMD /sbin/apcupsd_exporter -apcupsd.addr localhost:3551 &
ENTRYPOINT /sbin/entrypoint.sh