mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-07 19:48:06 +02:00
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>
7 lines
205 B
Docker
7 lines
205 B
Docker
FROM photon:2.0
|
|
|
|
RUN tdnf install -y tzdata shadow >> /dev/null \
|
|
&& tdnf clean all \
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -m -g 10000 -u 10000 harbor \
|
|
&& mkdir /harbor/
|