Merge pull request #16 from HideyoshiNakazone/devel
Devel - Changes Docker Image Base Since OpenJDK was Deprecated
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Build stage
|
# 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 src /home/app/src
|
||||||
COPY pom.xml /home/app
|
COPY pom.xml /home/app
|
||||||
RUN mvn -Dmaven.test.skip -f /home/app/pom.xml clean package
|
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
|
# 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 --from=build /home/app/target/*.jar app.jar
|
||||||
COPY src/main/resources/* credentials/
|
COPY src/main/resources/* credentials/
|
||||||
|
|||||||
Reference in New Issue
Block a user