argos/dmp-backend/Dockerfile.CI

16 lines
593 B
Docker
Raw Normal View History

2021-10-13 17:17:53 +02:00
FROM maven:3-openjdk-11 AS MAVEN_BUILD
2020-09-24 16:20:33 +02:00
COPY pom.xml /build/
COPY data /build/data/
COPY elastic /build/elastic/
COPY queryable /build/queryable/
COPY web /build/web/
WORKDIR /build/
RUN mvn package
2021-10-13 17:17:53 +02:00
FROM adoptopenjdk/openjdk11:alpine-jre
2020-09-24 16:20:33 +02:00
WORKDIR /app
COPY --from=MAVEN_BUILD /build/web/target/web-1.0-SNAPSHOT.jar /app/app.jar
2022-12-13 09:46:36 +01:00
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROF}", "-Dspring.config.additional-location=/files/config/", "-cp", "/app/app.jar", "-Dloader.path=/files/repo-jars", "org.springframework.boot.loader.PropertiesLauncher"]