mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add support for BuildKit's caching feature. (#196)
This commit is contained in:
parent
94f5fa37ac
commit
20a9426abb
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue