mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
8f036c765a
The latest `photon:2.0` does not include `groupadd` and `useradd` we need to install `shadow` package which includes these commands. Signed-off-by: He Weiwei <hweiwei@vmware.com>
8 lines
322 B
Docker
8 lines
322 B
Docker
FROM photon:2.0
|
|
|
|
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 \
|
|
&& chown -R nginx:nginx /etc/nginx |