From 9f23357b59c0cf5702ace8b93b3333a487f6fedf Mon Sep 17 00:00:00 2001 From: John Internet Date: Thu, 2 Jan 2020 15:57:38 +0000 Subject: [PATCH] Copy the executables in two layers, not 5. chmod with grep. --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 153a9f0..59dcffc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ RUN rm -rf /var/cache/apk/* RUN mkdir ~/.ssh # Copy in our executables. -COPY agent-start /bin/agent-start -COPY agent-add /bin/agent-add -COPY agent-stop /bin/agent-stop -RUN chmod +x /bin/agent-start /bin/agent-stop /bin/agent-add +COPY agent-start agent-stop agent-add /bin/ +COPY hosts-clear hosts-add /bin/ +RUN chmod +x /bin/agent-* /bin/hosts-*