From 49dd1b8c88cba58ef87a048688a98508d60fcca8 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Mon, 22 Mar 2021 08:37:53 -0400 Subject: 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 --- ms/neng/src/main/docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ms/neng/src/main/docker/Dockerfile') 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 -- cgit 1.2.3-korg