Skip to content

Commit

Permalink
Use nginx user in harvester-cluster-repo image
Browse files Browse the repository at this point in the history
Signed-off-by: Cooper Tseng <[email protected]>
(cherry picked from commit a623008)
  • Loading branch information
brandboat authored and bk201 committed Sep 30, 2024
1 parent 0bb40cc commit 38c91d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/harvester-repo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38c91d3

Please sign in to comment.