From c0ac0bb72874a97fb545b7c4575de6221544d667 Mon Sep 17 00:00:00 2001 From: amandilaras Date: Mon, 8 Apr 2024 10:29:05 +0300 Subject: [PATCH] correct path --- dmp-backend/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmp-backend/Dockerfile b/dmp-backend/Dockerfile index 87a74372d..6f0795f2d 100644 --- a/dmp-backend/Dockerfile +++ b/dmp-backend/Dockerfile @@ -26,11 +26,13 @@ RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} c ######################################## Run Stage ######################################## FROM eclipse-temurin:21-jre-alpine +WORKDIR /app + ARG PROFILE ARG REVISION ENV SERVER_PORT=8080 EXPOSE ${SERVER_PORT} -COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app.jar +COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app/app.jar ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROFILE}", "-Dspring.config.additional-location=file:/config/", "-jar", "/app/app.jar"] \ No newline at end of file