123456789101112131415161718192021222324252627 |
- FROM debian:jessie
-
- MAINTAINER Robin Thoni <robin@rthoni.com>
-
- ARG CONFIG_DIR=/etc/default/config-files/
-
- RUN apt-get update && apt-get -y install\
- isc-dhcp-server &&\
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
- RUN rm -rf /var/log/*
-
- 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 dhcpd.conf "${CONFIG_DIR}"/dhcpd.conf
-
- EXPOSE 80
-
- CMD ["/run.sh"]
|