Slow gradle build in Docker. Caching gradle build
问题 I am doing university project where we need to run multiple Spring Boot applications at once. I had already configured multi-stage build with gradle docker image and then run app in openjdk:jre image. Here is my Dockerfile: FROM gradle:5.3.0-jdk11-slim as builder USER root WORKDIR /usr/src/java-code COPY . /usr/src/java-code/ RUN gradle bootJar FROM openjdk:11-jre-slim EXPOSE 8080 WORKDIR /usr/src/java-app COPY --from=builder /usr/src/java-code/build/libs/*.jar ./app.jar ENTRYPOINT ["java", "