Skip to content

Commit

Permalink
update dockerfile to also use java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterjackson committed Feb 15, 2024
1 parent 0806a49 commit 77989b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.9-eclipse-temurin-20-alpine AS build
FROM maven:3.9-eclipse-temurin-21 AS build

WORKDIR /opt/cp4m

Expand All @@ -7,7 +7,7 @@ COPY src src

RUN mvn clean -U package -Dcustom.jarName=cp4m -Dmaven.test.skip=true

FROM eclipse-temurin:20-jdk-alpine
FROM eclipse-temurin:21
WORKDIR /opt/cp4m
COPY --from=build /opt/cp4m/target/cp4m.jar .

Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
Expand Down

0 comments on commit 77989b1

Please sign in to comment.