Skip to content

Commit

Permalink
update Dockerfile for genai libs and java version for spring boot
Browse files Browse the repository at this point in the history
  • Loading branch information
paulparkinson committed Aug 16, 2024
1 parent 2eb2923 commit bd92344
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bd92344

Please sign in to comment.