You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
585 B
17 lines
585 B
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2 |
|
FROM $BUILD_FROM |
|
|
|
ENV LANG C.UTF-8 |
|
|
|
COPY run.sh shutdown.sh / |
|
|
|
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 && \ |
|
apk add -U jq nut curl util-linux && \ |
|
mkdir /var/run/nut && \ |
|
chown root:nut /var/run/nut && \ |
|
chmod 770 /var/run/nut && \ |
|
chmod a+x /run.sh /shutdown.sh |
|
|
|
CMD [ "/run.sh" ]
|
|
|