aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
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=""