From b790030c9ab3ef3294b7c5404f981edb61dfec0e Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sat, 20 Feb 2016 20:30:45 +0100 Subject: [PATCH] Update the Dockefile --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7abf78e..aa862af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:jessie +FROM python:3 RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ @@ -6,14 +6,19 @@ RUN export DEBIAN_FRONTEND=noninteractive \ postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \ dovecot-sieve dovecot-managesieved \ dovecot-antispam spamassassin spamc clamav \ - supervisor rsyslog \ + supervisor rsyslog nginx \ && apt-get clean # When installed non-interactively, the file does not get copied to the # postfix chroot, thus causing smtpd to fail. RUN cp /etc/services /var/spool/postfix/etc/ -ADD config /etc/ +# Install the Web admin panel +COPY admin /admin +RUN pip install -r /admin/requirements.txt + +# Load the configuration +COPY config /etc/ # Explicitely specify the configuration file to avoid problems when # the default configuration path changes.