From a31490be73a2b80922316754b8899bc9078d0ff7 Mon Sep 17 00:00:00 2001 From: HePeng Date: Thu, 30 Apr 2020 14:14:27 +0800 Subject: Resolve esr-gui root running Issue-ID: AAI-2895 Change-Id: If350c05b7e50a973ceae3e604636b46f7858b42a Signed-off-by: HePeng (cherry picked from commit 27eba05e3e777f3c405c19dbda0343fcc6848c1a) --- distribution/src/main/assembly/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'distribution/src/main') 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 -- cgit 1.2.3-korg