Changes Docker Image Base Since OpenJDK was Deprecated

This commit is contained in:
2023-08-23 12:25:10 -03:00
parent e5f7e53527
commit dc60f19518

View File

@@ -1,7 +1,7 @@
#
# Build stage
#
FROM maven:3.8-jdk-11 AS build
FROM maven:3.9.3-ibm-semeru-17-focal AS build
COPY src /home/app/src
COPY pom.xml /home/app
RUN mvn -Dmaven.test.skip -f /home/app/pom.xml clean package
@@ -9,7 +9,7 @@ RUN mvn -Dmaven.test.skip -f /home/app/pom.xml clean package
#
# Package stage
#
FROM openjdk:17-jdk-slim-buster
FROM ibm-semeru-runtimes:open-11.0.19_7-jre-focal
COPY --from=build /home/app/target/*.jar app.jar
COPY src/main/resources/* credentials/