This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>java-jpa</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM eclipse-temurin:17.0.4.1_1-jre as builder | |
WORKDIR extracted | |
ADD target/*.jar app.jar | |
RUN java -Djarmode=layertools -jar app.jar extract | |
FROM eclipse-temurin:17.0.4.1_1-jre | |
WORKDIR application | |
COPY --from=builder extracted/dependencies/ ./ | |
COPY --from=builder extracted/spring-boot-loader/ ./ | |
COPY --from=builder extracted/snapshot-dependencies/ ./ |