Skip to content

Conversation

@JamieMagee
Copy link
Contributor

Summary

The Dockerfile currently compiles Ruby 3.2.2 from source using ruby-build, which takes about 5 minutes. Debian Trixie (our base image) ships Ruby 3.3, which satisfies licensee's requirement of Ruby >= 3.0.

This PR replaces the ruby-build compilation with apt-get install ruby ruby-dev.

Build time comparison

Build Time
Before (compile from source) 6m 28s
After (Debian package) 4m 5s
Saved 2m 23s (37%)

Closes #689

Debian Trixie ships Ruby 3.3, which satisfies licensee's requirement
of Ruby >= 3.0. This removes the need to compile Ruby 3.2.2 from source
using ruby-build, cutting Docker build time by about 2.5 minutes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request optimizes the Docker build process by replacing Ruby compilation from source with Debian's pre-packaged Ruby installation, reducing build time by approximately 37% (2 minutes 23 seconds).

Changes:

  • Replaced ruby-build compilation (Ruby 3.2.2) with Debian Trixie's packaged Ruby 3.3 via apt-get
  • Added ruby and ruby-dev packages to the apt-get installation list
  • Removed three lines that download, extract, and compile Ruby from source using ruby-build

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamesiri jamesiri merged commit 8b6c571 into master Jan 26, 2026
8 checks passed
@jamesiri jamesiri deleted the use-debian-ruby branch January 26, 2026 22:11
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.

Use Debian's packaged Ruby instead of compiling from source

3 participants