From 7a1e392cbfbb2e209c0a55f165a4f321b3540371 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 2 Feb 2018 17:18:04 +1100 Subject: [PATCH] Moved make clean into image --- Dockerfile | 5 +++-- init | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bab0130..62002d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/init b/init index a60ecbc..575bd0c 100755 --- a/init +++ b/init @@ -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