summaryrefslogtreecommitdiffstats
path: root/dcae-analytics/dcae-analytics-tca-web/Dockerfile
diff options
context:
space:
mode:
authorKai <lukai@chinamobile.com>2020-07-10 18:05:46 +0800
committerKai <lukai@chinamobile.com>2020-07-15 10:03:34 +0800
commit0688c66229fe1bfb1d7d8920705b019d5cfeb17f (patch)
tree717656f8ceae006223a395da3737400627e19de9 /dcae-analytics/dcae-analytics-tca-web/Dockerfile
parentddb9b0f7e578aefd06ee9e3f01d810b0b9034f3a (diff)
TCAGen2 java upgrade
Issue-ID: DCAEGEN2-2285 Signed-off-by: Kai Lu <lukai@chinamobile.com> Change-Id: I1a7b3db68141ed8648fe47865f39dea22f0d999c
Diffstat (limited to 'dcae-analytics/dcae-analytics-tca-web/Dockerfile')
-rw-r--r--dcae-analytics/dcae-analytics-tca-web/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/dcae-analytics/dcae-analytics-tca-web/Dockerfile b/dcae-analytics/dcae-analytics-tca-web/Dockerfile
index b6e4778..411b6b1 100644
--- a/dcae-analytics/dcae-analytics-tca-web/Dockerfile
+++ b/dcae-analytics/dcae-analytics-tca-web/Dockerfile
@@ -3,7 +3,7 @@
# Only changes made in docker/Dockerfile template file will be persistent
# ==========================================================================
-FROM openjdk:8-jre-alpine
+FROM openjdk:11-jre-slim
MAINTAINER Rajiv Singla <rs153v@att.com>
@@ -14,7 +14,7 @@ ARG DOCKER_ARTIFACT_DIR
RUN mkdir -p /var/log/ONAP/dcaegen2/analytics/tca-gen2
#Add a new user and group to allow container to be run as non-root
-RUN addgroup -S tca-gen2 && adduser -S -G tca-gen2 tca-gen2; \
+RUN groupadd tca-gen2 && useradd -g tca-gen2 tca-gen2; \
chmod a+rwx /opt; \
chmod a+rwx /var/log/ONAP/dcaegen2/analytics/tca-gen2; \
chown -R tca-gen2:tca-gen2 /opt; \