Make sure it uses latest bundler to prevent error due to mismatch

This commit is contained in:
Jorge Manrubia
2025-07-18 14:17:58 +02:00
parent c144ef68cb
commit ee79d134f1
+1
View File
@@ -25,6 +25,7 @@ RUN apt-get update -qq && \
# Install application gems
COPY Gemfile Gemfile.lock .ruby-version ./
RUN --mount=type=secret,id=GITHUB_TOKEN \
gem install bundler &&\
BUNDLE_GITHUB__COM="$(cat /run/secrets/GITHUB_TOKEN):x-oauth-basic" bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile