From 38184e71fb8b14f1ed62a937f6eb3b65511df015 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 08665ef..b689cb8 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/ #=========================