Make core container to non-root user

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2019-07-18 07:39:29 +00:00
parent 0fd375c7a8
commit 96b62e5741
3 changed files with 4 additions and 4 deletions

View File

@ -12,5 +12,5 @@ COPY ./make/migrations /harbor/migrations
RUN chmod u+x /harbor/start.sh /harbor/harbor_core
WORKDIR /harbor/
ENTRYPOINT ["/harbor/start.sh"]
ENTRYPOINT ["/harbor/harbor_core"]

BIN
make/photon/core/harbor_core Executable file

Binary file not shown.

View File

@ -1,3 +1,3 @@
#!/bin/sh
sudo -E -u \#10000 "/harbor/harbor_core"
#! sh
./harbor/harbor_core