From 037a6a626c9632678eaa13805beacbd02b084cfc Mon Sep 17 00:00:00 2001 From: arthurma Date: Thu, 7 Dec 2023 18:02:18 +0800 Subject: [PATCH] update Dockerfile --- rootfs/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootfs/Dockerfile b/rootfs/Dockerfile index 86517c6c16..50a183db6a 100644 --- a/rootfs/Dockerfile +++ b/rootfs/Dockerfile @@ -77,6 +77,9 @@ RUN apk add --no-cache libcap \ && apk del libcap \ && ln -sf /usr/local/nginx/sbin/nginx /usr/bin/nginx + +# ADD user to root group to allow access to part of socket file +RUN addgroup www-data root USER www-data # Create symlinks to redirect nginx logs to stdout and stderr docker log collector