FROM gradle:jdk8 as build COPY . /app WORKDIR /app RUN gradle bootJar FROM openjdk:8-jre-stretch COPY --from=build /app/build/libs/ottobot.jar /otto.jar CMD java -jar /otto.jar