From 5e2742b9789d8c7791e40ba0e2a60e4b116a5671 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Fri, 5 Feb 2021 09:21:54 +0000 Subject: [PATCH] Replace multiple ADD/RUN with ADD --chmod Reduce the layer count, and simplify the steps involved. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4aa1be0..2c3928b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -175,9 +175,10 @@ RUN find /output -exec sh -c 'file "{}" | grep -q ELF && strip --strip-debug "{} && apt-get -y install execstack \ && execstack -c /output/usr/lib/*.so* -ADD entrypoint /output/usr/local/bin/ -ADD *.sh /output/usr/local/bin/ -RUN chmod +x /output/usr/local/bin/* +ADD --chmod=755 \ + entrypoint \ + *.sh \ + /output/usr/local/bin/ #=========================