This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
ARG BUILD_FROM
|
||||
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Copy scripts for add-on
|
||||
COPY run.sh /
|
||||
COPY shutdown.sh /
|
||||
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 && \
|
||||
@@ -14,7 +12,6 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositori
|
||||
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
|
||||
chmod a+x /run.sh /shutdown.sh
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user