23 lines
466 B
Docker
23 lines
466 B
Docker
|
FROM maven:3-jdk-11 AS MAVEN_BUILD
|
||
|
|
||
|
|
||
|
|
||
|
COPY pom.xml /build/
|
||
|
COPY data /build/data/
|
||
|
COPY elastic /build/elastic/
|
||
|
#COPY logging /build/logging/
|
||
|
COPY queryable /build/queryable/
|
||
|
COPY web /build/web/
|
||
|
|
||
|
|
||
|
|
||
|
WORKDIR /build/
|
||
|
RUN mvn package -q
|
||
|
|
||
|
|
||
|
|
||
|
FROM amazoncorretto:11
|
||
|
WORKDIR /app
|
||
|
|
||
|
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"]
|