Update the Dockefile

master
Pierre Jaury 9 years ago
parent 699d4ba2fb
commit b790030c9a

@ -1,4 +1,4 @@
FROM debian:jessie FROM python:3
RUN export DEBIAN_FRONTEND=noninteractive \ RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \ && apt-get update \
@ -6,14 +6,19 @@ RUN export DEBIAN_FRONTEND=noninteractive \
postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \ postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \
dovecot-sieve dovecot-managesieved \ dovecot-sieve dovecot-managesieved \
dovecot-antispam spamassassin spamc clamav \ dovecot-antispam spamassassin spamc clamav \
supervisor rsyslog \ supervisor rsyslog nginx \
&& apt-get clean && apt-get clean
# When installed non-interactively, the file does not get copied to the # When installed non-interactively, the file does not get copied to the
# postfix chroot, thus causing smtpd to fail. # postfix chroot, thus causing smtpd to fail.
RUN cp /etc/services /var/spool/postfix/etc/ 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 # Explicitely specify the configuration file to avoid problems when
# the default configuration path changes. # the default configuration path changes.

Loading…
Cancel
Save