DAS_2024_1/borschevskaya_anna_lab_2/second/Dockerfile

16 lines
275 B
Docker
Raw Permalink Normal View History

2024-09-23 08:40:17 +04:00
FROM maven:3.8-eclipse-temurin-21-alpine AS build
WORKDIR /app
COPY pom.xml .
RUN mvn dependency:go-offline
COPY src ./src
RUN mvn clean package -DskipTests
FROM eclipse-temurin:21-jdk-alpine
COPY --from=build /app/target/*.jar /app.jar
CMD ["java", "-jar", "app.jar"]