Browse Source

пук

master
gsd 2 years ago
parent
commit
6efb64e366
  1. 9
      Dockerfile
  2. 9
      pom.xml

9
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"]

9
pom.xml

@ -99,4 +99,13 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project> </project>
Loading…
Cancel
Save