#8362: Add Homebrew-based Docker image
docker
stale
Cluster:
Docker Enhancements and Fixes
Notes:
- Adds Homebrew-powered Dockerfile for extensibility.
- Compared to the Node-based Dockerfile, total size grows ~300 MB.
- Reuses debian:bookworm-slim with sandbox-browser, offsetting base size.
- Gains significant extensibility from Homebrew.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates `Dockerfile.homebrew` to make the Homebrew installer reproducible by pinning it to a specific upstream commit and verifying the downloaded installer script with a SHA-256 checksum, improving supply-chain safety for the Homebrew-based image.
The Dockerfile still follows the pattern of installing build tooling on `debian:bookworm-slim`, setting up a non-root `${USER}`, installing Homebrew + Node via brew, then copying the repo and running the `pnpm` install/build steps before dropping privileges for runtime.
<h3>Confidence Score: 4/5</h3>
- This PR is generally safe to merge; changes are narrowly scoped to making the Homebrew installer reproducible.
- The only functional change is pinning and checksum-verifying the Homebrew install script, which reduces supply-chain risk. Remaining notes are mostly around Dockerfile ergonomics/ownership patterns rather than clear breakage introduced by this commit.
- Dockerfile.homebrew
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#7489: feat: add brew to Dockerfile
by k2589 · 2026-02-02
86.7%
#3324: Update Dockerfile to support Homebrew and Go for skill execution
by nnnet · 2026-01-28
85.5%
#11818: fix(docker): resolve build hang by using in-place ownership and opt...
by dilly · 2026-02-08
78.5%
#4116: Update Dockerfile to node 24
by kotov228 · 2026-01-29
77.7%
#3240: Fix Docker build failures on Windows/WSL environments
by Attili-sys · 2026-01-28
77.4%
#23313: feat(docker): add optional build-arg OPENCLAW_INSTALL_DOCKER_CLI to...
by zhuxuwei88-bot · 2026-02-22
76.9%
#11576: Update Dockerfile, change file ownership during copy to prevent long …
by fastali · 2026-02-08
76.1%
#12033: feat(docker): add linux/riscv64 image to Docker release
by gounthar · 2026-02-08
75.9%
#12629: Dockerfile: pre-install common CLI tools for agent runtime
by jhs129 · 2026-02-09
75.6%
#22491: Use multi-stage docker build to reduce image size from 4.72GB -> 2....
by mm-zacharydavison · 2026-02-21
75.5%