From 0f4e1888d9df4a17816f5878d039d72ed061c255 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 10 Feb 2023 14:35:11 +0100 Subject: [PATCH] Just delete the full cache directory, it isnt needed --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c65d5e18..5f1b7e5a 100644 --- a/README.md +++ b/README.md @@ -253,11 +253,11 @@ This build secret can then be referenced in the Dockerfile: # Copy Gemfiles COPY Gemfile Gemfile.lock ./ -# Install dependencies, including private repositories via access token (then remove git configs with exposed GITHUB_TOKEN) +# Install dependencies, including private repositories via access token (then remove bundle cache with exposed GITHUB_TOKEN) RUN --mount=type=secret,id=GITHUB_TOKEN \ BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \ bundle install && \ - find /usr/local/bundle/cache/bundler/git -name "config" -delete + rm -rf /usr/local/bundle/cache ``` ### Using command arguments for Traefik