Cleanup Postfix files more nicely

This commit is contained in:
Disassembler 2018-02-01 11:55:27 +01:00
parent 800bbce3d9
commit 35da2c422c
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -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/ /