23 lines
585 B
Docker
23 lines
585 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update && apk upgrade
|
|
RUN apk add --no-cache libusb apcupsd apcupsd-doc apcupsd-webif apache2
|
|
|
|
COPY apache2.conf /etc/apache2/httpd.conf
|
|
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
|
|
# COPY dockerrun.sh /entrypoint/run.sh
|
|
|
|
# RUN [ "/sbin/apcupsd" ]
|
|
#RUN /usr/bin/fcgiwrap -f -s unix:/var/run/fcgiwrap.socket & sleep 1
|
|
#RUN [ "chown", "nginx:nginx", "/var/run/fcgiwrap.socket" ]
|
|
# RUN [ "nginx", "-g", "daemon off;" ]
|
|
|
|
# RUN chmod +x /entrypoint/run.sh
|
|
|
|
VOLUME [ "/etc/apcupsd" ]
|
|
|
|
EXPOSE 80 3551/tcp 3551/udp
|
|
|
|
ENTRYPOINT httpd -k start && /sbin/apcupsd -b
|
|
|