diff --git a/Dockerfile b/Dockerfile index 92924eb..b147535 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM maven:3-eclipse-temurin-21-alpine AS MAVEN_CHAIN +FROM maven:3-eclipse-temurin-21-alpine AS maven_chain COPY pom.xml /tmp/ COPY src /tmp/src/ WORKDIR /tmp/ @@ -6,7 +6,7 @@ RUN mvn clean package FROM eclipse-temurin:21-jre-alpine RUN mkdir /home/beagen -COPY --from=MAVEN_CHAIN /tmp/target/beagen.jar /home/beagen/beagen.jar +COPY --from=maven_chain /tmp/target/beagen.jar /home/beagen/beagen.jar WORKDIR /home/beagen/ CMD ["java", "-Xms512M", "-Xmx1G", "-jar", "beagen.jar"]