From 9e062c27b659b464798702b8eeff02fb9926c103 Mon Sep 17 00:00:00 2001 From: Cooper Tseng Date: Fri, 27 Sep 2024 14:46:42 +0800 Subject: [PATCH] Use nginx user in harvester-cluster-repo image Signed-off-by: Cooper Tseng (cherry picked from commit a623008b91dc66c6089e2a72fcf0df4cc1d5bf14) --- package/harvester-repo/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/harvester-repo/Dockerfile b/package/harvester-repo/Dockerfile index 87fbdf6e9..b442be5ba 100644 --- a/package/harvester-repo/Dockerfile +++ b/package/harvester-repo/Dockerfile @@ -8,6 +8,12 @@ RUN zypper -n rm container-suseconnect && \ COPY charts /srv/www/htdocs/charts +RUN touch /run/nginx.pid && \ + chown nginx:nginx /run/nginx.pid && \ + chown -R nginx:nginx /srv/www/htdocs/charts + +USER nginx + EXPOSE 80 STOPSIGNAL SIGQUIT