From f702fa31bd0f7bbdadb2b89511c4675b38018e97 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 27 Dec 2024 17:33:57 +0100 Subject: [PATCH] fix: divided chown and chgrp --- fpm/Containerfile | 3 ++- nginx/Containerfile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fpm/Containerfile b/fpm/Containerfile index d4a1fa3..4f94dd5 100644 --- a/fpm/Containerfile +++ b/fpm/Containerfile @@ -18,7 +18,8 @@ RUN addgroup fpm && adduser -u 8888 -D -G fpm fpm RUN rm -rf /var/www/html/* COPY --from=builder /wikindx /var/www/html/ -RUN chown -R fpm.fpm /var/www/html/ +RUN chown -R fpm /var/www/html/ +RUN chgrp -R fpm /var/www/html/ ADD files/wikindx_pool.conf /etc/php/8.2/fpm/pool/ ADD files/entryPoint.sh /entryPoint.sh diff --git a/nginx/Containerfile b/nginx/Containerfile index 4b47298..85071e8 100644 --- a/nginx/Containerfile +++ b/nginx/Containerfile @@ -16,8 +16,8 @@ RUN chmod a+x /entryPoint.sh ADD files/default.conf /etc/nginx/http.d/ RUN sed -i '1idaemon off;' /etc/nginx/nginx.conf -RUN chown -R nginx.nginx /etc/nginx - +RUN chown -R nginx /etc/nginx +RUN chgrp -R nginx /etc/nginx USER nginx