Skip to content

Fix Docker build by copying .ruby-version before bundle install - #4677

Merged
CloCkWeRX merged 1 commit into
devfrom
fix-docker-build-missing-ruby-version-8858247702805966576
Jun 23, 2026
Merged

CloCkWeRX merged 1 commit into
devfrom
fix-docker-build-missing-ruby-version-8858247702805966576

Conversation

@CloCkWeRX

Copy link
Copy Markdown
Collaborator

This PR fixes a failing Docker build where bundle install would error out because it couldn't find the .ruby-version file. The Gemfile contains ruby File.read('.ruby-version'), so the file must be present in the build context before bundle install is executed.

I've updated the Dockerfile to include .ruby-version in the initial COPY command.

Verified the fix by:

  1. Manually running bundle install in the sandbox with and without the file (after adjusting the Ruby version to match the sandbox environment).
  2. Running a subset of the test suite (spec/models/member_spec.rb) to ensure the application remains functional.
  3. Reviewing the Dockerfile to ensure the file is copied to the correct location.

PR created automatically by Jules for task 8858247702805966576 started by @CloCkWeRX

The Gemfile reads the .ruby-version file to determine the Ruby version.
If this file is not present during `bundle install`, the build fails.
This change ensures that .ruby-version is copied along with the Gemfile
and Gemfile.lock.

Co-authored-by: CloCkWeRX <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@CloCkWeRX
CloCkWeRX merged commit 118e50c into dev Jun 23, 2026
1 of 16 checks passed
@CloCkWeRX
CloCkWeRX deleted the fix-docker-build-missing-ruby-version-8858247702805966576 branch June 23, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant