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.
 
 
 
 

15 lines
533 B

FROM maven:3.8.7-openjdk-18 as builder
WORKDIR /tmp
COPY settings.xml /root/.m2/settings.xml
VOLUME maven_repo /root/.m2/repository
ARG BUILDDATE
ENV BUILDDATE $BUILDDATE
RUN echo $BUILDDATE && git clone https://git.pblr-nyk.pro/gsd/Facti13.Web.Backend.Java.V2 && \
cd Facti13.Web.Backend.Java.V2 && \
mvn -f pom.xml clean package -Dmaven.test.skip=true
FROM eclipse-temurin:18
COPY --from=builder /tmp/Facti13.Web.Backend.Java.V2/target/*.jar /app/backend.jar
WORKDIR /app
ARG BUILDDATE
ENV BUILDDATE $BUILDDATE
ENTRYPOINT ["java"]