From a928bd82e65a304277b23df9a49c9343edaecb4f Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 6 Dec 2018 20:04:05 +0100 Subject: [PATCH] fix --- upsmon/Dockerfile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/upsmon/Dockerfile b/upsmon/Dockerfile index 7379b19..475632d 100644 --- a/upsmon/Dockerfile +++ b/upsmon/Dockerfile @@ -3,19 +3,18 @@ FROM $BUILD_FROM ENV LANG C.UTF-8 -RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories -RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories -RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories -RUN apk add -U jq nut curl - -RUN mkdir /var/run/nut -RUN chown root:nut /var/run/nut -RUN chmod 770 /var/run/nut - -# Copy data for add-on +# Copy scripts for add-on COPY run.sh / COPY shutdown.sh / -RUN chmod a+x /run.sh -RUN chmod a+x /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 && \ + 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 CMD [ "/run.sh" ]