diff options
author | Dan Timoney <dtimoney@att.com> | 2021-03-22 08:37:53 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2021-03-22 12:38:21 +0000 |
commit | 82c314f7e020cdedad275f21502b79eaa8f1568d (patch) | |
tree | c0ce0826e6267dc2cec909cfcc92ba94a75facd7 | |
parent | 163beaad8e0d52ce78e28c487dc0ea4eb401456f (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>
-rw-r--r-- | ms/neng/src/main/docker/Dockerfile | 3 |
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 |