You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
346 B
16 lines
346 B
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
|
|
|