Create entrypoint.sh.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
5
entrypoint.sh
Executable file
5
entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
/sbin/apcupsd -b &
|
||||
|
||||
/sbin/apcupsd_exporter -apcupsd.addr localhost:3551 &
|
||||
Reference in New Issue
Block a user