123456789101112131415161718192021222324252627 |
- FROM robinthoni/debian-multiarch:jessie
-
- ARG CONFIG_DIR=/etc/default/config-files/
- ARG NUT_GROUP_UID=1001
-
- RUN addgroup --gid "${NUT_GROUP_UID}" nut
-
- RUN apt-get update &&\
- apt-get install -y ssmtp nut &&\
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
- rm /etc/cron.*/*
-
- RUN mkdir -p /var/run/nut/; touch /var/run/nut/upsd.pid; chown nut:nut /etc/nut/*; ls -al /etc/nut
-
- COPY ./vars-vars /etc/vars-vars
-
- COPY ./vars-files /etc/vars-files
-
- COPY ./common.sh /common.sh
-
- COPY run.sh /run.sh
-
- RUN mkdir "${CONFIG_DIR}"
-
- COPY ./config "${CONFIG_DIR}"
-
- CMD ["/run.sh"]
|