Created
January 30, 2022 16:30
-
-
Save ahndmal/b42812307a179e998de1bfaf02709a1b 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 gradle:7.2-jdk11 AS GR_BUILD | |
#WORKDIR app | |
COPY ./ ./ | |
RUN gradle bootJar | |
FROM adoptopenjdk:11 | |
COPY --from=GR_BUILD /home/gradle/build/libs/*.jar ./app.jar | |
CMD ["/bin/sh", "-c", "java -jar app*.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment