update Dockerfile

This commit is contained in:
Alexandros Mandilaras 2024-04-05 13:32:07 +03:00
parent b6138da7ab
commit 42af117718
1 changed files with 7 additions and 6 deletions

View File

@ -10,12 +10,11 @@ ENV server_username=$MAVEN_ACCOUNT_USR
ENV server_password=$MAVEN_ACCOUNT_PSW ENV server_password=$MAVEN_ACCOUNT_PSW
COPY pom.xml /build/ COPY pom.xml /build/
#COPY data /build/data/ COPY core /build/core/
#COPY elastic /build/elastic/
#COPY logging /build/logging/
#COPY queryable /build/queryable/
COPY web /build/web/ COPY web /build/web/
RUN rm -f /build/web/src/main/resources/config/*-dev.yml COPY settings.xml /root/.m2/settings.xml
RUN rm -f /build/web/src/main/resources/config/*-devel.yml
RUN rm -f /build/annotation-web/src/main/resources/logging/*.xml
WORKDIR /build/ WORKDIR /build/
@ -31,7 +30,9 @@ WORKDIR /app
ARG PROFILE ARG PROFILE
ARG REVISION 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.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROFILE}","-jar","/app.jar"] ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROFILE}","-jar","/app.jar"]