Skip to content

Enable Docker BuildKit for faster image builds#62

Merged
chorrell merged 1 commit intomainfrom
enable-docker-buildkit
Feb 10, 2026
Merged

Enable Docker BuildKit for faster image builds#62
chorrell merged 1 commit intomainfrom
enable-docker-buildkit

Conversation

@chorrell
Copy link
Owner

Summary

Enables Docker BuildKit for improved build performance and caching in both CI and local development.

Changes

GitHub Actions Workflow

Added DOCKER_BUILDKIT: 1 environment variable to the test run step.

Rakefile

Set ENV['DOCKER_BUILDKIT'] = '1' at the top so it's enabled for all local test runs.

What is BuildKit?

Docker BuildKit is Docker's next-generation build engine that provides:

  • Faster builds - Parallel execution of build stages
  • Better caching - More efficient layer cache management
  • Improved output - Better progress information during builds
  • Modern features - Support for advanced Dockerfile syntax

BuildKit is now the default in Docker Desktop and is widely adopted.

Benefits

Faster CI/CD - Improved caching reduces build times
Better local experience - Faster iteration during development
More efficient - Parallel stage execution when possible
Future-proof - BuildKit is Docker's recommended build engine

Testing

✅ All tests pass with BuildKit enabled
✅ Verified both CI and local environments
✅ No behavioral changes to test execution
✅ Build output works correctly with BuildKit

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>
@chorrell chorrell merged commit ae9f100 into main Feb 10, 2026
1 check passed
@chorrell chorrell deleted the enable-docker-buildkit branch February 10, 2026 22:56
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

Comments