Skip to content

Commit

Permalink
Use JRE19 in container and fix artefact version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblackie committed Jun 23, 2024
1 parent 20d08be commit 4d6de5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
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"]

0 comments on commit 4d6de5f

Please sign in to comment.