-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JRE19 in container and fix artefact version
- Loading branch information
1 parent
20d08be
commit 4d6de5f
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM ibm-semeru-runtimes:open-17-jdk as builder | ||
FROM ibm-semeru-runtimes:open-19-jdk as builder | ||
RUN apt-get update && apt-get install -y --no-install-recommends maven | ||
ADD . /app | ||
WORKDIR /app | ||
# We need some properties filled for the beans to be initialized properly; the values don't matter. | ||
RUN cp src/main/resources/application.yml.example src/main/resources/application.yml && \ | ||
mvn package -Dmaven.test.skip=true | ||
|
||
FROM ibm-semeru-runtimes:open-17-jre | ||
COPY --from=builder /app/target/junk-0.0.1-SNAPSHOT.jar /app.jar | ||
FROM ibm-semeru-runtimes:open-19-jre | ||
COPY --from=builder /app/target/junk-1.0.0-SNAPSHOT.jar /app.jar | ||
CMD ["java", "-jar", "/app.jar"] |