11 lines
274 B
Docker
11 lines
274 B
Docker
FROM maven:3-eclipse-temurin-22 AS build
|
|
WORKDIR /build
|
|
COPY --link src src
|
|
COPY --link pom.xml pom.xml
|
|
RUN mvn package
|
|
|
|
FROM eclipse-temurin:22-jdk-alpine
|
|
WORKDIR /app
|
|
COPY --from=build --link /build/target/connect4x4-fat.jar app.jar
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|