update dockerfile to include directory with repository jars

This commit is contained in:
Bernaldo Mihasi 2022-11-24 17:31:16 +02:00
parent 7a0e1c89f2
commit da211ca756
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@ COPY data /build/data/
COPY elastic /build/elastic/
COPY queryable /build/queryable/
COPY web /build/web/
COPY depositinterface /build/depositinterface
WORKDIR /build/depositinterface/
RUN mvn install
WORKDIR /build/
RUN mvn package
@ -12,4 +16,4 @@ RUN mvn package
FROM adoptopenjdk/openjdk11:alpine-jre
WORKDIR /app
COPY --from=MAVEN_BUILD /build/web/target/web-1.0-SNAPSHOT.jar /app/app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROF}", "-Dspring.config.additional-location=/files/config/", "-jar","/app/app.jar"]
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROF}", "-Dspring.config.additional-location=/files/config/", "-Dspring.config.additional-location=/files/repoJars/", "-cp", "/app/app.jar", "-Dloader.path=/files/repoJars", "org.springframework.boot.loader.PropertiesLauncher"]