From ca736fb9d1de6f5557e98838b089d9083aeca192 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 21 Nov 2018 15:05:45 +0100 Subject: [PATCH] Enforce local bin files mode (#24) If you modify those files, COPY will keep their attributes and may break the generated container. This fix enforce more 755 for files from local bin directory --- ecs/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/ecs/Dockerfile b/ecs/Dockerfile index 1c363bb..fbcf5fa 100644 --- a/ecs/Dockerfile +++ b/ecs/Dockerfile @@ -67,6 +67,7 @@ RUN apk upgrade --update musl \ WORKDIR $HOME COPY --from=builder /ejabberd/runtime . COPY bin/* bin/ +RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl COPY --chown=ejabberd:ejabberd conf conf/ ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/cacert.pem