20 lines
313 B
Docker
20 lines
313 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
COPY repositories /etc/apk
|
|
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 run.sh /
|
|
COPY shutdown.sh /
|
|
RUN chmod a+x /run.sh
|
|
RUN chmod a+x /shutdown.sh
|
|
|
|
CMD [ "/run.sh" ]
|