aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-03-23 09:26:07 +0000
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-03-24 08:27:49 +0000
commit339c62eb5bbc939347183f981f0875cc45788732 (patch)
tree7a3da7b6a354a647a6453dcc9d256dcd5b45604e /Dockerfile
parent1a5e22c812aa988fbfc27a668c1d2541db971080 (diff)
Change of the Dockerfiles for java image for London rel12.0.0
Issue-ID: INT-2214 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ice309c620a60d3ac33e695ce4571e0cf21b33a6e
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 9dfd91c..e47f88b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,15 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.15_10-alpine
+ARG java_ver=onap-java11
-LABEL maintainer="ONAP Integration team, morgan.richomme@orange.com"
-LABEL Description="Reference ONAP JAVA 11 image based on alpine"
+# Java v11 base image
+FROM eclipse-temurin:11.0.18_10-jre-alpine AS onap-java11
+
+# Java v17 base image
+FROM eclipse-temurin:17.0.6_10-jre-alpine AS onap-java17
+
+FROM ${java_ver} AS onap-java-final
+
+LABEL maintainer="ONAP Integration team"
+LABEL Description="Reference ONAP JAVA image based on alpine"
ENV JAVA_OPTS="-Xms256m -Xmx1g"
ENV JAVA_SEC_OPTS=""