From e6b374526ba7ea35821cb629e4c8fe278e67939f Mon Sep 17 00:00:00 2001 From: Earlopain Date: Thu, 23 Feb 2023 14:30:06 +0100 Subject: [PATCH] [Docker] Make the rubocop cache work On my slow machine a run took about 3m30s, with this change it's down to just 20s --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4f283e661..6a743f293 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -130,7 +130,8 @@ services: image: e621 volumes: - .:/app - entrypoint: bundle exec rubocop + - rubocop_cache:/rubocop_cache + entrypoint: bundle exec rubocop --cache-root /rubocop_cache profiles: - rubocop @@ -154,3 +155,4 @@ volumes: node_modules: public_packs: public_packs_test: + rubocop_cache: