1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-09 13:23:54 +02:00
Mailu/Dockerfile

26 lines
816 B
Docker
Raw Normal View History

2016-02-20 20:30:45 +01:00
FROM python:3
2016-01-10 22:33:43 +01:00
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
2016-01-10 22:33:43 +01:00
&& apt-get install -y --no-install-recommends \
2016-02-17 22:56:40 +01:00
postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \
dovecot-sieve dovecot-managesieved \
2016-02-17 23:29:32 +01:00
dovecot-antispam spamassassin spamc clamav \
2016-02-20 20:30:45 +01:00
supervisor rsyslog nginx \
2016-01-10 22:33:43 +01:00
&& apt-get clean
2016-02-17 22:56:40 +01:00
# 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/
2016-02-20 20:30:45 +01:00
# Install the Web admin panel
COPY admin /admin
RUN pip install -r /admin/requirements.txt
# Load the configuration
COPY config /etc/
2016-02-17 22:56:40 +01:00
# Explicitely specify the configuration file to avoid problems when
# the default configuration path changes.
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]