aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2023-06-19 16:53:39 +0800
committerKeguang He <hekeguang@chinamobile.com>2023-06-22 14:33:02 +0000
commitbddfa1635c6a7c52853c616ba741d36671ec8869 (patch)
treee6b82c9ba90f77eb6e872d1e0bd4054f9aedc0c8
parent4115018b432cdd0fe457ea51d57c7ad96bd9e2ac (diff)
useradd uui for intent-analysis.
Issue-ID: USECASEUI-812 Signed-off-by: kaixiliu <liukaixi@chinamobile.com> Change-Id: I578a9a404732f92a9c12a7564abdcd3bb3686df9 (cherry picked from commit 0344534f268878013138d60e29c450298d15f459)
-rw-r--r--standalone/src/main/assembly/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/standalone/src/main/assembly/Dockerfile b/standalone/src/main/assembly/Dockerfile
index cdbe957..195cd65 100644
--- a/standalone/src/main/assembly/Dockerfile
+++ b/standalone/src/main/assembly/Dockerfile
@@ -10,5 +10,9 @@ WORKDIR /home/uui
EXPOSE 8083
+RUN addgroup -S uui && adduser -S uui -G uui && chown -R uui:uui /home/uui
+
+USER UUI
+WORKDIR /home/uui
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar usecase-ui-intent-analysis.jar"]