
From: Lu Weitao <luweitaobe@163.com> Signed-off-by: Lu Weitao <luweitaobe@163.com> --- container/srv-http/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/container/srv-http/Dockerfile b/container/srv-http/Dockerfile index 2821e57..8f9a36d 100644 --- a/container/srv-http/Dockerfile +++ b/container/srv-http/Dockerfile @@ -7,5 +7,9 @@ ADD root / RUN apk add --no-cache php7 php7-fpm php7-session php7-json php7-exif php7-imagick php7-gd php7-fileinfo RUN sed -i '/\[global\]/a daemonize = no' /etc/php7/php-fpm.conf +RUN sed -i "s/user = nobody/user = nginx/g" /etc/php7/php-fpm.d/www.conf +RUN sed -i "s/group = nobody/group = nginx/g" /etc/php7/php-fpm.d/www.conf + +RUN chown -R nginx:nginx /srv/_h5ai ENTRYPOINT ["/sbin/entrypoint.sh"] -- 2.23.0