From 30908ac328cffd377313f2c65c01d573cb9f1196 Mon Sep 17 00:00:00 2001 From: Christopher Horrell Date: Tue, 10 Feb 2026 17:54:47 -0500 Subject: [PATCH] Enable Docker BuildKit for faster image builds Enables BuildKit in both CI and local development: - Set DOCKER_BUILDKIT=1 in GitHub Actions workflow - Set DOCKER_BUILDKIT=1 in Rakefile for local runs Benefits: - Faster image builds with improved layer caching - Better build output with progress information - Parallel build stage execution - More efficient use of build cache across runs - Better handling of multi-stage builds BuildKit is Docker's next-generation build system and is now the default in Docker Desktop and newer Docker versions. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- .github/workflows/ruby.yml | 2 ++ Rakefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 6f5e079..9f44032 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -15,4 +15,6 @@ jobs: ruby-version: 3.4 bundler-cache: true - name: Run test + env: + DOCKER_BUILDKIT: 1 run: bundle exec rake diff --git a/Rakefile b/Rakefile index 9498b97..80ba260 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,9 @@ require 'rake' require 'rspec/core/rake_task' +# Enable Docker BuildKit for faster builds with better caching +ENV['DOCKER_BUILDKIT'] = '1' + task :spec => 'spec:all' task :default => :spec