From 77cf71e668ba4afb062cab3d1547ba9cbeb88469 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 29 Oct 2022 13:40:50 +0800 Subject: [PATCH] update: nginx running as root user --- Dockerfile | 3 +-- nginx/nginx.conf | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba57f56..719caab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,7 @@ RUN apk add php8-fpm WORKDIR /asset/etc/php8/ RUN cat /etc/php8/php-fpm.conf | sed 's/^;\(pid\)/\1/' > php-fpm.conf WORKDIR /asset/etc/php8/php-fpm.d/ -RUN cat /etc/php8/php-fpm.d/www.conf | sed 's?127.0.0.1:9000?/run/php-fpm.sock?' > www.conf && \ - echo -e 'listen.owner = nginx\nlisten.group = nginx' >> www.conf +RUN cat /etc/php8/php-fpm.d/www.conf | sed 's?127.0.0.1:9000?/run/php-fpm.sock?' > www.conf COPY --from=vlmcsd /tmp/vlmcs* /asset/usr/bin/ COPY --from=iconv /tmp/libiconv.so.2 /asset/usr/local/lib/ COPY --from=iconv /tmp/iconv.so /asset/usr/lib/php8/modules/ diff --git a/nginx/nginx.conf b/nginx/nginx.conf index bedb115..0c75952 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,7 +1,8 @@ -user nginx; +user root; pcre_jit on; pid /run/nginx.pid; worker_processes auto; + error_log /dev/stdout warn; include /etc/nginx/modules/*.conf;