dockerfile updates
This commit is contained in:
parent
9e25c82763
commit
1dc9d2e946
|
@ -4,12 +4,8 @@ FROM maven:3.9-eclipse-temurin-21-alpine AS build-stage
|
|||
ARG MAVEN_ACCOUNT_USR
|
||||
ARG MAVEN_ACCOUNT_PSW
|
||||
ARG REVISION
|
||||
ARG MAVEN_GPG_PASSPHRASE
|
||||
ARG MAVEN_GPG_KEYNAME
|
||||
ARG PROFILE
|
||||
ARG DEV_PROFILE_URL
|
||||
ENV gpg_keyname=$MAVEN_GPG_KEYNAME
|
||||
ENV gpg_passphrase=$MAVEN_GPG_PASSPHRASE
|
||||
ENV server_username=$MAVEN_ACCOUNT_USR
|
||||
ENV server_password=$MAVEN_ACCOUNT_PSW
|
||||
|
||||
|
@ -38,6 +34,6 @@ FROM eclipse-temurin:21-jre-alpine
|
|||
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.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"]
|
||||
ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/repository-deposit-web.jar"]
|
Loading…
Reference in New Issue