build.Containerfile: use cache for Gradle/Maven build artifacts

This commit is contained in:
Andreas Schildbach 2025-02-08 00:12:31 +01:00
parent 9a88527465
commit e8b457b15b

View file

@ -39,7 +39,8 @@ WORKDIR /home/builder
COPY --chown=builder / project/
# build project
RUN /usr/bin/gradle --project-dir project/ \
RUN --mount=target=/home/builder/.gradle,type=cache,uid=1000,gid=1000,sharing=locked \
/usr/bin/gradle --project-dir project/ \
--no-build-cache --no-daemon --no-parallel \
-Dmaven.repo.local=repo \
clean ${ADDITIONAL_GRADLE_TASK} :bitcoinj-core:publishToMavenLocal :bitcoinj-wallettool:installDist