File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM eclipse-temurin:21 AS builder
22WORKDIR /application
3- COPY target/*.jar application .jar
4- RUN java -Djarmode=tools -jar employees .jar extract --layers --destination extracted
3+ COPY target/*.jar lwsapp .jar
4+ RUN java -Djarmode=tools -jar lwsapp .jar extract --layers --destination extracted
55
66FROM eclipse-temurin:21
77RUN apt update && apt install -y busybox && rm -rf /var/lib/apt/lists/*
88WORKDIR /application
9- COPY --from=builder application/dependencies/ ./
10- COPY --from=builder application/spring-boot-loader/ ./
11- COPY --from=builder application/snapshot-dependencies/ ./
12- COPY --from=builder application/application/ ./
9+ COPY --from=builder application/extracted/ dependencies/ ./
10+ COPY --from=builder application/extracted/ spring-boot-loader/ ./
11+ COPY --from=builder application/extracted/ snapshot-dependencies/ ./
12+ COPY --from=builder application/extracted/ application/ ./
1313HEALTHCHECK CMD busybox wget -qO- http://localhost:8080/actuator/health || exit 1
14- ENTRYPOINT ["java" , "-jar" , "employees .jar" ]
14+ ENTRYPOINT ["java" , "-jar" , "lwsapp .jar" ]
You can’t perform that action at this time.
0 commit comments