2022-02-13 17:56:05 -05:00
|
|
|
FROM maven:alpine as build
|
|
|
|
ENV HOME=/usr/app
|
|
|
|
RUN mkdir -p $HOME
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
ADD pom.xml $HOME
|
|
|
|
ADD core/pom.xml $HOME/core/pom.xml
|
2022-02-20 16:51:08 -05:00
|
|
|
ADD runner/pom.xml $HOME/runner/pom.xml
|
2022-02-13 17:56:05 -05:00
|
|
|
|
|
|
|
RUN mvn -pl core verify --fail-never
|
|
|
|
ADD core $HOME/core
|
|
|
|
RUN mvn -pl core install
|
2022-02-20 16:51:08 -05:00
|
|
|
RUN mvn -pl runner verify --fail-never
|
|
|
|
ADD runner $HOME/runner
|
|
|
|
RUN mvn -pl core,runner package
|
2022-02-13 17:56:05 -05:00
|
|
|
|
|
|
|
FROM openjdk:8-jdk-alpine
|
|
|
|
|
2022-02-20 16:51:08 -05:00
|
|
|
COPY --from=build /usr/app/runner/target/runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /app/runner.jar
|
2022-02-13 17:56:05 -05:00
|
|
|
|
|
|
|
ENTRYPOINT java -jar /app/runner.jar
|