Faster build

This commit is contained in:
Andrea Cavalli 2024-05-23 15:04:22 +02:00
parent 2525b9d9e9
commit 8ef2658255

View File

@ -1,8 +1,9 @@
FROM maven:3-eclipse-temurin-22 AS build FROM maven:3-eclipse-temurin-22 AS build
WORKDIR /build WORKDIR /build
COPY --link src src
COPY --link pom.xml pom.xml COPY --link pom.xml pom.xml
RUN mvn package RUN mvn package || true 2>/dev/null
COPY --link src src
RUN mvn package -DskipTests=true
FROM eclipse-temurin:22-jdk-alpine FROM eclipse-temurin:22-jdk-alpine
WORKDIR /app WORKDIR /app