argos/dmp-backend/Dockerfile

23 lines
466 B
Docker
Raw Normal View History

2022-09-13 09:35:56 +02:00
FROM maven:3-jdk-11 AS MAVEN_BUILD
2020-04-27 15:21:03 +02:00
COPY pom.xml /build/
COPY data /build/data/
COPY elastic /build/elastic/
2022-09-13 09:35:56 +02:00
#COPY logging /build/logging/
2020-04-27 15:21:03 +02:00
COPY queryable /build/queryable/
COPY web /build/web/
WORKDIR /build/
2022-09-13 09:35:56 +02:00
RUN mvn package -q
2020-04-27 15:21:03 +02:00
2022-09-13 09:35:56 +02:00
FROM amazoncorretto:11
2020-04-27 15:21:03 +02:00
WORKDIR /app
2020-05-12 12:10:23 +02:00
COPY --from=MAVEN_BUILD /build/web/target/web-1.0-SNAPSHOT.jar /app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROFILE}","-jar","/app.jar"]