Skip to content

Instantly share code, notes, and snippets.

@punund
Created May 4, 2015 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punund/83f640c7845e149aa7b1 to your computer and use it in GitHub Desktop.
Save punund/83f640c7845e149aa7b1 to your computer and use it in GitHub Desktop.
FROM ubuntu
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install postfix postfix-pcre -y --force-yes
RUN DEBIAN_FRONTEND=noninteractive apt-get install syslog-ng syslog-ng-core -y --force-yes
ADD etc /etc/
RUN cp /etc/resolv.conf /etc/services /var/spool/postfix/etc/
RUN sed -i 's/system();/unix-dgram("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
ADD run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run
EXPOSE 25
CMD ["/usr/local/bin/run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment