FROM robinthoni/debian-multiarch:jessie MAINTAINER Robin Thoni ARG CONFIG_DIR=/etc/default/config-files/ RUN apt-get update && apt-get -y install\ tftpd-hpa\ xinetd &&\ 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 xinetd.tftp.conf "${CONFIG_DIR}"/tftp EXPOSE 80 CMD ["/run.sh"]