From e6207fa2dc4b0c3cf1fb180114c806834c3a6b39 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 19 Sep 2024 20:14:05 +0200 Subject: [PATCH] fix chmod --- 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