summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHePeng <he.peng6@zte.com.cn>2020-04-30 14:14:27 +0800
committerHePeng <he.peng6@zte.com.cn>2020-04-30 14:14:46 +0800
commit27eba05e3e777f3c405c19dbda0343fcc6848c1a (patch)
treea9e01470665acf54ab5bdc1bd9abe644e07087a4
parent37690e1d995c19a32bfbe149ceb8446897865001 (diff)
Resolve esr-gui root running
Issue-ID: AAI-2895 Change-Id: If350c05b7e50a973ceae3e604636b46f7858b42a Signed-off-by: HePeng <he.peng6@zte.com.cn>
-rw-r--r--distribution/src/main/assembly/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/distribution/src/main/assembly/Dockerfile b/distribution/src/main/assembly/Dockerfile
index 5dd1b18..aade40d 100644
--- a/distribution/src/main/assembly/Dockerfile
+++ b/distribution/src/main/assembly/Dockerfile
@@ -18,9 +18,11 @@ ENV JRE_HOME ${JAVA_HOME}/jre
#add esr gui related resources to the docker image
RUN mkdir /home/esr
+RUN addgroup -S esr && adduser -S -G esr esr
WORKDIR /home/esr
ADD esr-gui-*-linux64.tar.gz /home/esr/
RUN chmod 755 /home/esr/*.sh
+USER esr
ENTRYPOINT /home/esr/startup.sh