add revision env when copying from build-stage
This commit is contained in:
parent
ece54563d0
commit
2fb3332390
|
@ -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"]
|
Loading…
Reference in New Issue