Skip to content

Commit

Permalink
Update Dockerfile: Java 17 to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinsanta authored Jan 5, 2025
1 parent 3615a0b commit bb48f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3-eclipse-temurin-17 as build
FROM maven:3-eclipse-temurin-21 as build
RUN mkdir /build
WORKDIR /build
COPY ./pom.xml pom.xml
Expand All @@ -8,9 +8,9 @@ RUN mvn dependency:go-offline -B

# copy sources and compile
COPY ./src src
RUN mvn clean package -B && cp target/__RNAME__-*.jar app.jar
RUN mvn clean package -B && cp target/__RNAME__*.jar app.jar

FROM eclipse-temurin:17-alpine as run
FROM eclipse-temurin:21-alpine as run

# Remember to add extra files if needed by your project
COPY instances /instances
Expand Down

0 comments on commit bb48f15

Please sign in to comment.