FROM debian:jessie MAINTAINER Robin Thoni RUN apt-get update &&\ apt-get install -y gcc cmake make git &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN git clone https://git.rthoni.com/robin.thoni/roehling-postsrsd &&\ cd roehling-postsrsd &&\ git checkout 1.4 &&\ make &&\ make install RUN rm -rf /var/log/* &&\ mkfifo /var/log/syslog &&\ ln -s /dev/null /var/log/mail.log &&\ ln -s /dev/null /var/log/mail.err &&\ ln -s /dev/null /var/log/main.info &&\ ln -s /dev/null /var/log/messages COPY ./config/postsrs.conf /etc/default/postsrsd COPY ./vars-vars /etc/vars-vars COPY ./vars-files /etc/vars-files COPY ./run.sh /run.sh CMD ["/run.sh"]