[Docker] Make the rubocop cache work

On my slow machine a run took about 3m30s, with this change it's down to just 20s
This commit is contained in:
Earlopain 2023-02-23 14:30:06 +01:00
parent 3553987b6d
commit e6b374526b
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -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: