hassio-addons/upsmon/Dockerfile

21 lines
597 B
Docker
Raw Normal View History

2018-11-08 20:56:10 +00:00
ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
2018-12-06 19:04:05 +00:00
# Copy scripts for add-on
2018-11-08 20:56:10 +00:00
COPY run.sh /
2018-11-22 12:10:16 +00:00
COPY shutdown.sh /
2018-12-06 19:04:05 +00:00
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
2020-06-03 19:56:19 +00:00
apk add -U jq nut curl util-linux && \
2018-12-06 19:04:05 +00:00
mkdir /var/run/nut && \
chown root:nut /var/run/nut && \
chmod 770 /var/run/nut && \
chmod a+x /run.sh && \
chmod a+x /shutdown.sh
2018-11-08 20:56:10 +00:00
CMD [ "/run.sh" ]