diff options
Diffstat (limited to 'prh-app-server')
-rw-r--r-- | prh-app-server/Dockerfile | 6 | ||||
-rw-r--r-- | prh-app-server/pom.xml | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/prh-app-server/Dockerfile b/prh-app-server/Dockerfile index a72ab448..22a9b468 100644 --- a/prh-app-server/Dockerfile +++ b/prh-app-server/Dockerfile @@ -1,12 +1,12 @@ -FROM openjdk:8-jre-alpine +FROM docker.io/openjdk:11-jre-slim LABEL copyright="Copyright (C) 2018-2019 NOKIA" \ license.name="The Apache Software License, Version 2.0" \ license.url="http://www.apache.org/licenses/LICENSE-2.0" \ maintainer="Nokia Wroclaw ONAP Team" -RUN adduser -h ${docker.user.dir} -D ${docker.user.name}; \ - chmod -R a+w /var/log +RUN useradd --user-group --uid ${docker.user.id} -d ${docker.user.dir} ${docker.user.name}; \ +chmod -R a+w /var/log USER ${docker.user.name} WORKDIR ${docker.user.dir} diff --git a/prh-app-server/pom.xml b/prh-app-server/pom.xml index 268bb5ee..1271399b 100644 --- a/prh-app-server/pom.xml +++ b/prh-app-server/pom.xml @@ -45,6 +45,7 @@ <skipDocker>false</skipDocker> <docker.user.name>prh</docker.user.name> <docker.user.dir>/home/${docker.user.name}</docker.user.dir> + <docker.user.id>1414</docker.user.id> </properties> <build> |