Skip to content

Commit 78053e7

Browse files
committed
update Dockerfile for genai libs and java version for spring boot
1 parent b555619 commit 78053e7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
FROM maven:3.6.3-openjdk-11 AS maven_build
1+
FROM maven:3.8.4-openjdk-17 AS maven_build
22
COPY pom.xml /tmp/pom.xml
33
COPY env.properties /tmp/env.properties
44
COPY src /tmp/src
5-
COPY lib /tmp/lib
6-
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
75
WORKDIR /tmp/
86

9-
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
107
RUN mvn -f /tmp/pom.xml clean package
118

12-
FROM openjdk
9+
FROM openjdk:17
1310
EXPOSE 8080
1411

1512
CMD ls /tmp

0 commit comments

Comments
 (0)