FROM gradle:jdk11 as build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle shadowJar --no-daemon FROM openjdk:11-jre COPY --from=build /home/gradle/src/build/libs/*.jar /app/app.jar ENTRYPOINT ["java","-jar","/app/app.jar"]