diff options
Diffstat (limited to 'cmso-database/src/main/docker/Dockerfile')
-rw-r--r-- | cmso-database/src/main/docker/Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmso-database/src/main/docker/Dockerfile b/cmso-database/src/main/docker/Dockerfile index 35fb4cc..8c4074c 100644 --- a/cmso-database/src/main/docker/Dockerfile +++ b/cmso-database/src/main/docker/Dockerfile @@ -17,15 +17,21 @@ RUN test -n "$http_proxy" && echo "Acquire::Proxy \"http://$http_proxy\";" > /et apt-get install -y openjdk-11-jre-headless && \ apt-get install -y curl +RUN groupadd onap \ + && useradd -m -g onap onap + COPY onap-cmso/docker-liquibase.jar ${APP_HOME}/app.jar COPY onap-cmso/startService.sh ${APP_HOME}/startService.sh RUN chmod 700 ${APP_HOME}/startService.sh && \ ln -s /share/etc ${APP_HOME}/etc && \ - ln -s /share/logs ${APP_HOME}/logs + ln -s /share/logs ${APP_HOME}/logs && \ + chown -R onap:onap ${APP_HOME} VOLUME /share/etc VOLUME /share/logs +USER onap + WORKDIR ${APP_HOME} ENTRYPOINT ./startService.sh |