From 6e9f6152becf10938c41934014fd877768d871c2 Mon Sep 17 00:00:00 2001 From: Casper Date: Sat, 16 Jan 2021 19:35:42 +0100 Subject: [PATCH] Add init system --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0817e147..96dcd817 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ RUN \ altermime amavisd-new apt-transport-https arj binutils bzip2 \ dovecot-core dovecot-imapd dovecot-ldap dovecot-lmtpd \ dovecot-managesieved dovecot-pop3d dovecot-sieve dovecot-solr \ - ca-certificates cabextract clamav clamav-daemon cpio curl ed \ + dumb-init ca-certificates cabextract clamav clamav-daemon cpio curl ed \ # F - O fail2ban fetchmail file gamin gnupg gzip iproute2 iptables \ locales logwatch lhasa libdate-manip-perl liblz4-tool \ @@ -244,4 +244,6 @@ WORKDIR / EXPOSE 25 587 143 465 993 110 995 4190 +ENTRYPOINT ["/usr/bin/dumb-init", "--"] + CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]