From 35da2c422c77bd56d9928aa538e1a251f3c5bd8e Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 1 Feb 2018 11:55:27 +0100 Subject: [PATCH] Cleanup Postfix files more nicely --- postfix/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postfix/Dockerfile b/postfix/Dockerfile index ba25800..a65539d 100644 --- a/postfix/Dockerfile +++ b/postfix/Dockerfile @@ -8,7 +8,8 @@ RUN \ # Install Postfix && apk --no-cache add ca-certificates postfix s6 \ # Cleanup - && rm -r /etc/postfix/access /etc/postfix/aliases /etc/postfix/canonical /etc/postfix/dynamicmaps.cf* /etc/postfix/generic /etc/postfix/header_checks /etc/postfix/postfix-files.d /etc/postfix/relocated /etc/postfix/transport /etc/postfix/virtual + && sed -ir '/^(#.*)?$/d' /etc/postfix/aliases \ + && rm -r /etc/postfix/access /etc/postfix/canonical /etc/postfix/dynamicmaps.cf* /etc/postfix/generic /etc/postfix/header_checks /etc/postfix/postfix-files.d /etc/postfix/relocated /etc/postfix/transport /etc/postfix/virtual COPY docker/ /