Add support for BuildKit's caching feature. (#196)

This commit is contained in:
Kavin 2022-02-22 09:33:14 +00:00 committed by GitHub
parent 94f5fa37ac
commit 20a9426abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,8 @@ WORKDIR /app/
COPY . /app/
RUN chmod +x ./gradlew && ./gradlew shadowJar
RUN --mount=type=cache,target=/root/.gradle/caches/ \
./gradlew shadowJar
FROM eclipse-temurin:11-jre

View File

@ -4,7 +4,8 @@ WORKDIR /app/
COPY . /app/
RUN chmod +x ./gradlew && ./gradlew shadowJar
RUN --mount=type=cache,target=/root/.gradle/caches/ \
./gradlew shadowJar
FROM ibm-semeru-runtimes:open-11-jre