Moved make clean into image

This commit is contained in:
Deon George 2018-02-02 17:18:04 +11:00
parent db970b2db3
commit 7a1e392cbf
2 changed files with 4 additions and 3 deletions

View File

@ -4,8 +4,9 @@
FROM debian:stretch
RUN apt-get update \
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
&& rm -rf /var/lib/apt/lists/* /tmp/*
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
&& cd /etc/mail && make clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l@Y | chpasswd

2
init
View File

@ -18,7 +18,7 @@ fi
if [ "$1" == "start" ]; then
/usr/sbin/saslauthd -m /run/saslauthd -a pam
cd /etc/mail && make clean && make && make && exec /usr/sbin/sendmail -q1h -bD &
cd /etc/mail && make && make && exec /usr/sbin/sendmail -q1h -bD &
wait
else