From 0151b256fcc514bca9e83509900b81461a742c47 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sun, 4 Jun 2023 17:03:47 -0400 Subject: [PATCH] cache cargo artifacts --- .gitignore | 4 ++++ docker-compose.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 63ee4f35fc..3a667851c7 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,7 @@ yarn* # Nix Development shell items .devenv .direnv + +# Cargo cache for Docker +/.cargo-cache +/.cargo-target diff --git a/docker-compose.yml b/docker-compose.yml index e4f751af08..bc986ada9f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,8 @@ services: environment: NODE_ENV: production volumes: + - ./.cargo-cache:/root/.cargo + - ./.cargo-target:/calckey/packages/backend/native-utils/target - ./files:/calckey/files - ./.config:/calckey/.config:ro