Created
June 1, 2020 19:54
-
-
Save avinash10584/82e1d7deb954e0eb637e930ab27b9601 to your computer and use it in GitHub Desktop.
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 openjdk:15-jdk-slim as bulid | |
WORKDIR application | |
ARG JAR_FILE=target/*.jar | |
COPY ${JAR_FILE} app.jar | |
RUN java -Djarmode=layertools -jar app.jar extract | |
FROM openjdk:15-jdk-slim | |
WORKDIR application | |
COPY --from=bulid application/dependencies/ ./ | |
COPY --from=bulid application/spring-boot-loader/ ./ | |
COPY --from=bulid application/snapshot-dependencies/ ./ | |
COPY --from=bulid application/application/ ./ | |
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment