aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-03-22 08:37:53 -0400
committerDan Timoney <dtimoney@att.com>2021-03-22 08:37:53 -0400
commit49dd1b8c88cba58ef87a048688a98508d60fcca8 (patch)
treee23632c1f415887898af798ddd94bb87d8a24a4a /ms/neng
parentc3e800149c947ecc9b76a2e3b990664fc5d41ce1 (diff)
Fixed permissions issue in /app.jar
Updated Dockerfile to install app.jar in / (as expected by start script) and changed file ownership to non-root user used to run container. Change-Id: I8f9ffef662f831cb7d9c6fd56be463cc73639329 Issue-ID: CCSDK-3228 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/src/main/docker/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/ms/neng/src/main/docker/Dockerfile b/ms/neng/src/main/docker/Dockerfile
index ec161d3f..3ffca77a 100644
--- a/ms/neng/src/main/docker/Dockerfile
+++ b/ms/neng/src/main/docker/Dockerfile
@@ -26,7 +26,7 @@ USER root
RUN apk add --no-cache curl
VOLUME /tmp
-ADD NetworkElementNameGen.jar app.jar
+ADD NetworkElementNameGen.jar /app.jar
VOLUME /opt/etc
#VOLUME /opt/aai
ADD opt/etc/ /opt/etc/
@@ -35,6 +35,7 @@ ADD startService.sh /startService.sh
RUN addgroup -S ccsdk && adduser -S ccsdk -G ccsdk
RUN chown ccsdk:ccsdk /startService.sh
RUN chown -R ccsdk:ccsdk /opt
+RUN chown ccsdk:ccsdk /app.jar
RUN chmod go+w /tmp
RUN chmod 700 /startService.sh
USER ccsdk