diff --git a/Dockerfile b/Dockerfile index 0eea0d6..6a305ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -From ubuntu:trusty +FROM debian:stable MAINTAINER Simon Templer # Set noninteractive mode for apt-get @@ -9,7 +9,15 @@ RUN apt-get update # Start editing # Install package here for cache -RUN apt-get -y install supervisor postfix sasl2-bin opendkim opendkim-tools +# +# XXX postfix installation fails due to automatically created myhostname setting +RUN apt-get -y install postfix; \ + postconf -e myhostname=localhost && \ + apt-get -y install rsyslog supervisor sasl2-bin opendkim opendkim-tools + +# XXX again installing postfix is probably not required +RUN postconf -h myhostname && \ + apt-get -y install postfix # Add files ADD assets/install.sh /opt/install.sh