Moved make clean into image
This commit is contained in:
parent
db970b2db3
commit
7a1e392cbf
@ -5,6 +5,7 @@ FROM debian:stretch
|
|||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
|
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
|
||||||
|
&& cd /etc/mail && make clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
&& 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
|
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l@Y | chpasswd
|
||||||
|
2
init
2
init
@ -18,7 +18,7 @@ fi
|
|||||||
|
|
||||||
if [ "$1" == "start" ]; then
|
if [ "$1" == "start" ]; then
|
||||||
/usr/sbin/saslauthd -m /run/saslauthd -a pam
|
/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
|
wait
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user