From cb1fe82149043379ca86323caf38aafe8bd65c77 Mon Sep 17 00:00:00 2001 From: karmaking Date: Thu, 25 Jul 2024 12:55:45 +0200 Subject: [PATCH] created working Dockerfile --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e471440..ad60d76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ +FROM maven:3-eclipse-temurin-17 AS maven +COPY pom.xml . +COPY src /src +RUN MAVEN_OPTS="-Xmx3G -Xss2m" mvn clean package + FROM openjdk:17-jdk-alpine -WORKDIR / -COPY target/obp-hola-app-*-SNAPSHOT.jar obp-hola.jar + +COPY --from=maven target/obp-hola-app-*-SNAPSHOT.jar obp-hola.jar COPY application.properties application.properties #COPY --chmod=777 entrypoint.sh entrypoint.sh #RUN chmod +x entrypoint.sh