Skip to content

Commit

Permalink
Merge pull request #33629 from rfigueroa
Browse files Browse the repository at this point in the history
* pr/33629:
  Update dockerfile samples to use Java 17

Closes gh-33629
  • Loading branch information
mhalbritter committed Jan 9, 2023
2 parents 6a6ecad + 2b3a24b commit 7cdf3f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Here is an example of a Dockerfile using `jarmode`.

[source,dockerfile,indent=0,subs="verbatim"]
----
FROM eclipse-temurin:11-jre as builder
FROM eclipse-temurin:17-jre as builder
WORKDIR application
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
FROM eclipse-temurin:11-jre
FROM eclipse-temurin:17-jre
WORKDIR application
COPY --from=builder application/dependencies/ ./
COPY --from=builder application/spring-boot-loader/ ./
Expand Down

0 comments on commit 7cdf3f4

Please sign in to comment.