diff --git a/r2dbc/boot-reactive-cache/Dockerfile b/r2dbc/boot-reactive-cache/Dockerfile index 890d935fb..ad86a4213 100644 --- a/r2dbc/boot-reactive-cache/Dockerfile +++ b/r2dbc/boot-reactive-cache/Dockerfile @@ -1,12 +1,12 @@ -FROM eclipse-temurin:17.0.11_9-jre-focal as builder -WORKDIR application +FROM eclipse-temurin:21.0.4_7-jre-alpine as builder +WORKDIR /application ARG JAR_FILE=target/boot-reactive-cache-0.0.1-SNAPSHOT.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=layertools -jar application.jar extract # the second stage of our build will copy the extracted layers -FROM eclipse-temurin:17.0.11_9-jre-focal -WORKDIR application +FROM eclipse-temurin:21.0.4_7-jre-alpine +WORKDIR /application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/spring-boot-loader/ ./ COPY --from=builder application/snapshot-dependencies/ ./