diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..58d9e1c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM maven:3.8.7-openjdk-18 as builder +WORKDIR /tmp +RUN 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 +FROM adoptopenjdk:11-jre-hotspot +COPY --from=builder /tmp/Facti13.Web.Backend.Java.V2/target/*.jar /app/backend.jar +WORKDIR /app +ENTRYPOINT ["java", "-jar", "backend.jar"] \ No newline at end of file diff --git a/pom.xml b/pom.xml index 8af947e..101cf12 100644 --- a/pom.xml +++ b/pom.xml @@ -99,4 +99,13 @@ test + + + + + org.springframework.boot + spring-boot-maven-plugin + + + \ No newline at end of file