From bd92344d464ab0c0800d0de19f239a497f7bf889 Mon Sep 17 00:00:00 2001 From: paulparkinson Date: Thu, 15 Aug 2024 23:08:55 -0400 Subject: [PATCH] update Dockerfile for genai libs and java version for spring boot --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33fb47f..504653b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ -FROM maven:3.6.3-openjdk-11 AS maven_build +FROM maven:3.8.4-openjdk-17 AS maven_build COPY pom.xml /tmp/pom.xml COPY env.properties /tmp/env.properties COPY src /tmp/src -COPY lib /tmp/lib -COPY lib/oci-java-sdk-generativeai-3.25.1-preview1-20230906.204234-1.jar /tmp/lib/oci-java-sdk-generativeai-3.25.1-preview1-20230906.204234-1.jar WORKDIR /tmp/ -RUN mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=/tmp/lib/oci-java-sdk-generativeai-3.25.1-preview1-20230906.204234-1.jar RUN mvn -f /tmp/pom.xml clean package -FROM openjdk +FROM openjdk:17 EXPOSE 8080 CMD ls /tmp