2022-02-13 17:56:05 -05:00
|
|
|
FROM maven:alpine as build
|
|
|
|
ENV HOME=/usr/app
|
|
|
|
RUN mkdir -p $HOME
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
ADD . $HOME
|
|
|
|
RUN --mount=type=cache,target=/root/.m2 mvn -f $HOME/pom.xml clean package
|
|
|
|
|
|
|
|
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
|