diff --git a/Dockerfile b/Dockerfile index aa1b586..b7ae7bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,10 +26,11 @@ RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} c ######################################## Run Stage ######################################## FROM eclipse-temurin:21-jre-alpine +ARG PROFILE ARG REVISION ENV SERVER_PORT=8080 EXPOSE ${SERVER_PORT} -COPY --from=build-stage /build/web/target/repository-deposit-web-${REVISION}.jar /app/repository-deposit-web-${REVISION}.jar +COPY --from=build-stage /build/web/target/repository-deposit-web-${REVISION}.jar /app/repository-deposit-web.jar -ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/repository-deposit-web-${REVISION}.jar"] \ No newline at end of file +ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/repository-deposit-web.jar"] \ No newline at end of file