From 4e253a098dc42db1b407cc8c219bc9f53cd9f626 Mon Sep 17 00:00:00 2001 From: Josef Friedrich Date: Fri, 2 Sep 2016 09:08:05 +0200 Subject: [PATCH] Simplify Dockerfile (#300) The 'ADD' instruction can handle directories as source. It is no need to add every script in 'target/bin' explicitly. New scripts can be added without touching the Dockerfile. --- Dockerfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ae46fec..71c212d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,17 +103,9 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \ RUN curl -s https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x1-cross-signed.pem && \ curl -s https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x2-cross-signed.pem +ADD ./target/bin /usr/local/bin # Start-mailserver script -ADD \ - target/bin/addmailuser \ - target/bin/debug-fetchmail \ - target/bin/delmailuser \ - target/bin/generate-dkim-config\ - target/bin/generate-ssl-certificate \ - target/bin/listmailuser \ - target/bin/setup-fetchmail \ - target/start-mailserver.sh \ - /usr/local/bin/ +ADD ./target/start-mailserver.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/* EXPOSE 25 587 143 993 110 995 4190