Change of the Dockerfiles for java image for London rel
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
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=""