mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-14 14:25:36 +01:00
19a13e8575
Use non-root user to run the service within these docker images, and provide HEALTHCHECK mechanism.
7 lines
113 B
Bash
7 lines
113 B
Bash
#!/bin/sh
|
|
if [ -d /etc/ui/ ]; then
|
|
chown -R 10000:10000 /etc/ui/
|
|
fi
|
|
sudo -E -u \#10000 "/harbor/harbor_ui"
|
|
|