-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e98840
commit cb02607
Showing
3 changed files
with
4 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
FROM maven:3.9.6-eclipse-temurin-17 as builder | ||
WORKDIR application | ||
COPY src pom.xml checkstyle.xml ./ | ||
RUN mvn -X clean package | ||
|
||
FROM openjdk:17-jdk-slim | ||
WORKDIR application | ||
COPY --from=builder application/target/application.jar ./ | ||
COPY target/application.jar ./ | ||
ENTRYPOINT ["java", "-jar","application.jar"] |
This file contains 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
This file contains 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