From 9dea09f4122cd2b6db81a04f055961e69d95e0e2 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 19 Sep 2024 19:19:07 +0000 Subject: [PATCH] fix chmod (#240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit questa notazione è più compatibile Reviewed-on: https://git.libreschool.org/BgLUG/bglug.it/pulls/240 Co-authored-by: paspo Co-committed-by: paspo --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aecb0db..49f9f32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ RUN \ chmod -R a-x,a=rX,ug+w /wwwroot /logs COPY docker/rootfs / -COPY --chown=nginx:www-data --chmod=a-x,a=rX,ug+w public/ /wwwroot/ +COPY --chown=nginx:www-data public/ /wwwroot/ +RUN find /webroot/ -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \; # config test RUN nginx -t