File tree Expand file tree Collapse file tree
docker/docker-spring-boot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 <configuration >
4646 <layers >
4747 <enabled >true</enabled >
48+ <configuration >${project.basedir} /src/layers.xml</configuration >
4849 </layers >
4950 </configuration >
5051 </plugin >
Original file line number Diff line number Diff line change 1+ <layers xmlns =" http://www.springframework.org/schema/boot/layers"
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://www.springframework.org/schema/boot/layers
4+ https://www.springframework.org/schema/boot/layers/layers-2.3.xsd" >
5+ <application >
6+ <into layer =" spring-boot-loader" >
7+ <include >org/springframework/boot/loader/**</include >
8+ </into >
9+ <into layer =" application" />
10+ </application >
11+ <dependencies >
12+ <into layer =" snapshot-dependencies" >
13+ <include >*:*:*SNAPSHOT</include >
14+ </into >
15+ <into layer =" internal-dependencies" >
16+ <include >com.baeldung.docker:*:*</include >
17+ </into >
18+ <into layer =" dependencies" />
19+ </dependencies >
20+ <layerOrder >
21+ <layer >dependencies</layer >
22+ <layer >spring-boot-loader</layer >
23+ <layer >internal-dependencies</layer >
24+ <layer >snapshot-dependencies</layer >
25+ <layer >application</layer >
26+ </layerOrder >
27+ </layers >
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ RUN java -Djarmode=layertools -jar application.jar extract
1010FROM adoptopenjdk:11-jre-hotspot
1111COPY --from=builder dependencies/ ./
1212COPY --from=builder snapshot-dependencies/ ./
13+ COPY --from=builder internal-dependencies/ ./
1314COPY --from=builder spring-boot-loader/ ./
1415COPY --from=builder application/ ./
1516ENTRYPOINT ["java" , "org.springframework.boot.loader.JarLauncher" ]
You can’t perform that action at this time.
0 commit comments