From e6f481b59f7f67a7f605f9d97fa6a5ee1de68840 Mon Sep 17 00:00:00 2001 From: Casper Date: Tue, 30 Aug 2022 00:33:15 +0200 Subject: [PATCH] Streamline COPY statements in Dockerfile (#2747) --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3940cc6..c185264d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,8 +69,8 @@ RUN \ rm -rf /var/lib/apt/lists/* && \ c_rehash 2>&1 -COPY ./target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh -COPY ./target/bin/sedfile /usr/local/bin/sedfile +COPY target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh +COPY target/bin/sedfile /usr/local/bin/sedfile RUN chmod +x /usr/local/bin/sedfile @@ -262,19 +262,19 @@ RUN \ rm /etc/postsrsd.secret && \ rm /etc/cron.daily/00logwatch -COPY ./VERSION / +COPY VERSION / COPY \ - ./target/bin/* \ - ./target/scripts/*.sh \ - ./target/scripts/startup/*.sh \ - ./target/scripts/wrapper/*.sh \ - ./target/docker-configomat/configomat.sh \ + target/bin/* \ + target/scripts/*.sh \ + target/scripts/startup/*.sh \ + target/scripts/wrapper/*.sh \ + target/docker-configomat/configomat.sh \ /usr/local/bin/ RUN chmod +x /usr/local/bin/* -COPY ./target/scripts/helpers /usr/local/bin/helpers +COPY target/scripts/helpers /usr/local/bin/helpers # # Final stage focuses only on image config