mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 21:25:55 +01:00
Update portal-base and nginx-base Dockerfile.base (#17442)
Installing nginx 1.22 creates the nginx group and nginx user, so instead of creating them again, modify them. Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
006f495c82
commit
1ea2ce6134
@ -2,6 +2,6 @@ FROM photon:4.0
|
||||
|
||||
RUN tdnf install -y nginx shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx \
|
||||
&& groupmod -g 10000 nginx && usermod -g 10000 -u 10000 -d /home/nginx -s /bin/bash nginx \
|
||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
@ -4,5 +4,5 @@ RUN tdnf install -y nginx shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||
&& groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx \
|
||||
&& groupmod -g 10000 nginx && usermod -g 10000 -u 10000 -d /home/nginx -s /bin/bash nginx \
|
||||
&& chown -R nginx:nginx /etc/nginx
|
Loading…
Reference in New Issue
Block a user