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.

Dockerfile 596B

123456789101112131415161718192021222324252627
  1. FROM robinthoni/debian-multiarch:jessie
  2. ARG CONFIG_DIR=/etc/default/config-files/
  3. ARG NUT_GROUP_UID=1001
  4. RUN addgroup --gid "${NUT_GROUP_UID}" nut
  5. RUN apt-get update &&\
  6. apt-get install -y ssmtp nut &&\
  7. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
  8. rm /etc/cron.*/*
  9. RUN mkdir -p /var/run/nut/; touch /var/run/nut/upsd.pid; chown nut:nut /etc/nut/*; ls -al /etc/nut
  10. COPY ./vars-vars /etc/vars-vars
  11. COPY ./vars-files /etc/vars-files
  12. COPY ./common.sh /common.sh
  13. COPY run.sh /run.sh
  14. RUN mkdir "${CONFIG_DIR}"
  15. COPY ./config "${CONFIG_DIR}"
  16. CMD ["/run.sh"]