2021-09-13 12:13:40 +02:00
|
|
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2
|
2018-11-08 21:56:10 +01:00
|
|
|
FROM $BUILD_FROM
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2021-09-13 12:13:40 +02:00
|
|
|
COPY run.sh shutdown.sh /
|
2018-12-06 20:04:05 +01: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 21:56:19 +02:00
|
|
|
apk add -U jq nut curl util-linux && \
|
2018-12-06 20:04:05 +01:00
|
|
|
mkdir /var/run/nut && \
|
|
|
|
chown root:nut /var/run/nut && \
|
|
|
|
chmod 770 /var/run/nut && \
|
2021-09-13 12:13:40 +02:00
|
|
|
chmod a+x /run.sh /shutdown.sh
|
2018-11-08 21:56:10 +01:00
|
|
|
|
|
|
|
CMD [ "/run.sh" ]
|