2024-05-23 14:48:50 +02:00
|
|
|
FROM maven:3-eclipse-temurin-22 AS build
|
|
|
|
WORKDIR /build
|
|
|
|
COPY --link pom.xml pom.xml
|
2024-05-23 15:04:22 +02:00
|
|
|
RUN mvn package || true 2>/dev/null
|
|
|
|
COPY --link src src
|
|
|
|
RUN mvn package -DskipTests=true
|
2024-05-23 14:48:50 +02:00
|
|
|
|
|
|
|
FROM eclipse-temurin:22-jdk-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build --link /build/target/connect4x4-fat.jar app.jar
|
|
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|