FROM openjdk:16-slim MAINTAINER OpenDC Maintainers # Obtain (cache) Gradle wrapper COPY gradlew /app/ COPY gradle /app/gradle WORKDIR /app RUN ./gradlew --version # Build project COPY ./ /app/ RUN ./gradlew --no-daemon :installDist FROM openjdk:16-slim COPY --from=0 /app/build/install /opt/ COPY --from=0 /app/traces /opt/opendc/traces WORKDIR /opt/opendc CMD bin/opendc-web-runner