docker: Cache shared target deps and build directories.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-05-29 18:46:11 +00:00
1 parent 640332c48f
commit 47f7e33a28
6 files changed
+11 -1

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ RUN \
--mount=type=cache,dst=${RUSTUP_HOME},sharing=locked \
--mount=type=cache,dst=${CARGO_HOME},sharing=locked \
--mount=type=cache,dst=${CARGO_TARGET_DIR},sharing=locked \
--mount=type=cache,dst=${CARGO_TARGET_DIR}/deps,sharing=shared \
--mount=type=cache,dst=${CARGO_TARGET_DIR}/build,sharing=shared \
<<EOF
set -eux
case "$cargo_profile" in