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
COPY pom.xml /build/
#COPY data /build/data/
#COPY elastic /build/elastic/
#COPY logging /build/logging/
#COPY queryable /build/queryable/
COPY core /build/core/
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/
@ -31,7 +30,9 @@ WORKDIR /app
ARG PROFILE
ARG REVISION
ENV SERVER_PORT=8080
EXPOSE ${SERVER_PORT}
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"]