From bab665542478d838411d59095f52173f1ddc5aa1 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 63ee4f35f..3a667851c 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 e4f751af0..bc986ada9 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