diff --git a/Dockerfile b/Dockerfile index 2e7a9b823..37567a807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apt-get update -qq && \ COPY Gemfile Gemfile.lock .ruby-version ./ RUN --mount=type=secret,id=GITHUB_TOKEN \ BUNDLE_GITHUB__COM="$(cat /run/secrets/GITHUB_TOKEN):x-oauth-basic" bundle install && \ + gem install bundler &&\ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ bundle exec bootsnap precompile --gemfile