add revision env when copying from build-stage

This commit is contained in:
Alexandros Mandilaras 2024-02-20 16:18:42 +02:00
parent ece54563d0
commit 2fb3332390
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,6 @@ FROM eclipse-temurin:21-jre-ubi9-minimal
ARG PROFILE ARG PROFILE
ARG REVISION ARG REVISION
COPY --from=build-stage /build/notification-web/target/sti-viewer-notification-web.jar /app/sti-viewer-notification-web.jar COPY --from=build-stage /build/notification-web/target/sti-viewer-notification-web-${REVISION}.jar /app/sti-viewer-notification-web.jar
ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/sti-viewer-notification-web.jar"] ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/sti-viewer-notification-web.jar"]