diff options
author | HePeng <he.peng6@zte.com.cn> | 2020-04-30 14:14:27 +0800 |
---|---|---|
committer | James Forsyth <jf2512@att.com> | 2020-04-30 13:16:47 +0000 |
commit | a31490be73a2b80922316754b8899bc9078d0ff7 (patch) | |
tree | da9958478e944f351178fa0a7a08558b87f2cbf8 /distribution/src/main | |
parent | ae14506d535eb3fb2e9f9095375e98e784c92419 (diff) |
Resolve esr-gui root running
Issue-ID: AAI-2895
Change-Id: If350c05b7e50a973ceae3e604636b46f7858b42a
Signed-off-by: HePeng <he.peng6@zte.com.cn>
(cherry picked from commit 27eba05e3e777f3c405c19dbda0343fcc6848c1a)
Diffstat (limited to 'distribution/src/main')
-rw-r--r-- | distribution/src/main/assembly/Dockerfile | 2 |
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 |