Compare commits
2 Commits
3b62e5016c
...
a23ea6673f
Author | SHA1 | Date |
---|---|---|
Chandrasegar Jeyanthinathakkurukkal | a23ea6673f | 10 months ago |
Chandrasegar Jeyanthinathakkurukkal | c3abb4d724 | 10 months ago |
@ -0,0 +1,15 @@
|
||||
FROM maven:3.6.3-openjdk-17-slim as BUILDER
|
||||
ARG VERSION=0.0.1-SNAPSHOT
|
||||
WORKDIR /build/
|
||||
COPY pom.xml /build/
|
||||
COPY src /build/src
|
||||
|
||||
RUN mvn clean install
|
||||
COPY target/mailsender-${VERSION}.jar target/application.jar
|
||||
|
||||
FROM java:21.0.2-jre-slim
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=BUILDER /build/target/application.jar /app/
|
||||
CMD java -jar /app/application.jar
|
||||
|
Loading…
Reference in new issue