summaryrefslogtreecommitdiffstats
path: root/distribution/src/main
diff options
context:
space:
mode:
authorLaMont, William(wl2432) <wl2432@att.com>2020-04-30 14:02:53 -0400
committerJames Forsyth <jf2512@att.com>2020-04-30 18:46:58 +0000
commit0f35689c2f5521702256c859ed83583d8e558ac5 (patch)
tree8b2f19bc3b5ea835b23b1bfd5392d905f9834e16 /distribution/src/main
parent27eba05e3e777f3c405c19dbda0343fcc6848c1a (diff)
update esr-gui Dockerfile
Issue-ID: AAI-2896 Change-Id: If1015674635f5f73d28b83702a797e56ae91befa Signed-off-by: LaMont, William(wl2432) <wl2432@att.com> (cherry picked from commit ad6a3eabe8e301e0c0523ad4040fc1f7d103befe)
Diffstat (limited to 'distribution/src/main')
-rw-r--r--distribution/src/main/assembly/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/distribution/src/main/assembly/Dockerfile b/distribution/src/main/assembly/Dockerfile
index aade40d..703a7d0 100644
--- a/distribution/src/main/assembly/Dockerfile
+++ b/distribution/src/main/assembly/Dockerfile
@@ -18,10 +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
+RUN groupadd -r esr && useradd -r -g esr esr
WORKDIR /home/esr
ADD esr-gui-*-linux64.tar.gz /home/esr/
RUN chmod 755 /home/esr/*.sh
+RUN chown -R esr:esr /home/esr
USER esr
ENTRYPOINT /home/esr/startup.sh