Merge pull request #147 from auguster/master
Dockerfile optimization to reduce image size
This commit is contained in:
commit
0cf0cb58c6
15
Dockerfile
15
Dockerfile
|
@ -2,13 +2,14 @@ FROM ubuntu:14.04
|
|||
MAINTAINER Thomas VIAL
|
||||
|
||||
# Packages
|
||||
RUN apt-get update -q --fix-missing
|
||||
RUN apt-get -y upgrade
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install vim postfix sasl2-bin courier-imap courier-imap-ssl \
|
||||
courier-pop courier-pop-ssl courier-authdaemon supervisor gamin amavisd-new spamassassin clamav clamav-daemon libnet-dns-perl libmail-spf-perl \
|
||||
pyzor razor arj bzip2 cabextract cpio file gzip nomarch p7zip pax unzip zip zoo rsyslog mailutils netcat \
|
||||
opendkim opendkim-tools opendmarc curl fail2ban
|
||||
RUN apt-get autoclean && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update -q --fix-missing &&\
|
||||
apt-get -y upgrade &&\
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install vim postfix sasl2-bin courier-imap courier-imap-ssl \
|
||||
courier-pop courier-pop-ssl courier-authdaemon supervisor gamin amavisd-new spamassassin clamav clamav-daemon libnet-dns-perl libmail-spf-perl \
|
||||
pyzor razor arj bzip2 cabextract cpio file gzip nomarch p7zip pax unzip zip zoo rsyslog mailutils netcat \
|
||||
opendkim opendkim-tools opendmarc curl fail2ban &&\
|
||||
apt-get autoclean &&\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Configures Saslauthd
|
||||
RUN rm -rf /var/run/saslauthd && ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd
|
||||
|
|
Loading…
Reference in New Issue