Add support for BuildKit's caching feature.

This commit is contained in:
FireMasterK 2022-02-22 09:30:43 +00:00
parent 94f5fa37ac
commit 90a9096760
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -4,7 +4,8 @@ WORKDIR /app/
COPY . /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 FROM ibm-semeru-runtimes:open-11-jre