2018-11-08 20:56:10 +00:00
|
|
|
ARG BUILD_FROM
|
|
|
|
FROM $BUILD_FROM
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2018-11-22 09:28:32 +00:00
|
|
|
COPY repositories /etc/apk
|
2018-11-22 12:16:11 +00:00
|
|
|
RUN apk add -U jq nut curl
|
2018-11-08 20:56:10 +00:00
|
|
|
|
|
|
|
RUN mkdir /var/run/nut
|
|
|
|
RUN chown root:nut /var/run/nut
|
|
|
|
RUN chmod 770 /var/run/nut
|
|
|
|
|
|
|
|
# Copy data for add-on
|
|
|
|
COPY run.sh /
|
2018-11-22 12:10:16 +00:00
|
|
|
COPY shutdown.sh /
|
2018-11-08 20:56:10 +00:00
|
|
|
RUN chmod a+x /run.sh
|
2018-11-22 12:10:16 +00:00
|
|
|
RUN chmod a+x /shutdown.sh
|
2018-11-08 20:56:10 +00:00
|
|
|
|
|
|
|
CMD [ "/run.sh" ]
|