From d065da672e043eb6b031ce658611c887dc3afbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Sun, 31 Oct 2021 18:13:25 +0100 Subject: [PATCH] Explicitly set permissions for all copied files --- Dockerfile.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.m4 b/Dockerfile.m4 index bd78245..0dea49b 100644 --- a/Dockerfile.m4 +++ b/Dockerfile.m4 @@ -81,8 +81,12 @@ COPY --from=build --chown=root:root /tmp/reactos.iso /var/lib/qemu/iso/reactos.i # Copy services COPY --chown=root:root ./scripts/service/ /etc/service/ +RUN find /etc/service/ -type d -not -perm 0755 -exec chmod 0755 '{}' ';' +RUN find /etc/service/ -type f -not -perm 0755 -exec chmod 0755 '{}' ';' # Copy bin scripts COPY --chown=root:root ./scripts/bin/ /usr/local/bin/ +RUN find /usr/local/bin/ -type d -not -perm 0755 -exec chmod 0755 '{}' ';' +RUN find /usr/local/bin/ -type f -not -perm 0755 -exec chmod 0755 '{}' ';' ENTRYPOINT ["/usr/local/bin/container-init"]