From 3b8b164a0c8a55b7d9ae73fec04ac6108fe0a1e8 Mon Sep 17 00:00:00 2001 From: Andrew Dorokhov Date: Sat, 24 Aug 2024 23:32:33 +0300 Subject: [PATCH] Fix chown command to use colon for user and group separation --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd30723e2..a21d918c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,7 @@ COPY config/php.ini ${PHP_INI_DIR}/conf.d/custom.ini COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Make sure files/folders needed by the processes are accessable when they run under the nobody user -RUN chown -R nobody.nobody /var/www/html /run /var/lib/nginx /var/log/nginx +RUN chown -R nobody:nobody /var/www/html /run /var/lib/nginx /var/log/nginx # Switch to use a non-root user from here on USER nobody