aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/Dockerfile
diff options
context:
space:
mode:
authorAlexander Mazuruk <a.mazuruk@samsung.com>2021-02-18 17:25:57 +0100
committerAlexander Mazuruk <a.mazuruk@samsung.com>2021-03-25 00:16:50 +0100
commitbc8f2ecef242b962e49f0498b7436917759f558b (patch)
tree1a1acadf7bd314a02b129db9d00291df8b6c9732 /prh-app-server/Dockerfile
parent2a19d427095ab30ef636409ff50031e9e1490ff6 (diff)
Change openjdk baseOS img to integration-java111.6.0
Since 7.2.0 integration images switched over to alpine, adjusted Dockerfile to accomodate the switch. Benefits from switching over: * minimal {java11,python} images maintained by integration team * using currently "blessed by seccom" versions (:latest tag used) * should limit spread of legal issues across layers * integration images will be the first to have automated compliance documentation * should limit spread of base layers (contributing to deployment footprint - more base layers = more to download, more to store etc...) Issue-ID: INT-1864 Issue-ID: DCAEGEN2-2420 Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com> Change-Id: I6c3fc2aae136a7f361a7e15cb52b75931392f34a
Diffstat (limited to 'prh-app-server/Dockerfile')
-rw-r--r--prh-app-server/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/prh-app-server/Dockerfile b/prh-app-server/Dockerfile
index d92dae8f..fb762ec3 100644
--- a/prh-app-server/Dockerfile
+++ b/prh-app-server/Dockerfile
@@ -1,12 +1,13 @@
-FROM docker.io/openjdk:11-jre-slim
+FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
LABEL copyright="Copyright (C) 2018-2020 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 useradd --user-group --uid ${docker.user.id} -d ${docker.user.dir} ${docker.user.name}; \
-chmod -R a+w /var/log
+USER root
+RUN adduser --disabled-password --uid ${docker.user.id} --home ${docker.user.dir} ${docker.user.name} && \
+ chmod -R a+w /var/log
USER ${docker.user.name}
WORKDIR ${docker.user.dir}