-
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
73e3d81
commit 0a0e58e
Showing
1 changed file
with
13 additions
and
4 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,5 +1,14 @@ | ||
# | ||
# Build stage | ||
# | ||
FROM maven:3.8.6-amazoncorretto-17 AS build | ||
COPY src /home/app/src | ||
COPY pom.xml /home/app | ||
RUN mvn -f /home/app/pom.xml clean package | ||
|
||
# | ||
# Package stage | ||
# | ||
FROM eclipse-temurin:17-jdk-alpine | ||
VOLUME /tmp | ||
ARG JAR_FILE | ||
COPY ${JAR_FILE} app.jar | ||
ENTRYPOINT ["java","-jar","/app.jar"] | ||
COPY --from=build /home/app/target/adobe-sign-0.0.1-SNAPSHOT.jar /usr/local/lib/app.jar | ||
ENTRYPOINT ["java","-jar","/usr/local/lib/app.jar"] |