cuddly-flag-68085
04/29/2021, 8:39 PMENV XDG_CACHE_HOME /root/.cache
(src)
RUN --mount=type=cache,target=/root/.cache/ ./pants binary some/jar/to/build:
But all subsequent docker runs dont use any cached data, and the build starts from scratch. Are there any examples of pants + docker + caching that are known to work?RUN --mount=type=cache,target=/root/.cache/ du --max-depth=1 -h /root/.cache
hundreds-father-404
04/29/2021, 10:14 PMcuddly-flag-68085
04/29/2021, 10:26 PMhundreds-father-404
04/29/2021, 10:33 PMenv
in your terminal before and after, in case certain env vars are changing? (Altho Pants discards most env vars for hermiticity)happy-kitchen-89482
04/29/2021, 11:17 PMcuddly-flag-68085
04/29/2021, 11:58 PM