Notes: The docker-compose.local.yaml
and the Dockerfile
need to reside in the same directory as the script (~/bin
, etc). Otherwise you need to specify full paths in the script.
I've used Linuxbrew as my default image here to get a bunch of tools in their newest versions without any hassle. Also, you can easily instruct Claude to get whatever it needs by running brew install
. The downsides are: the image can get quite large, Homebrew gets constant updates, so your images will rebuild often, sometimes at unexpected moments. I guess NixOS might be a reasonable alternative here. TBD.
Usage:
- Execute
local-compose up -d
to get the container(s) up and running. - Run anything with regular
docker compose ...
syntax:local-compose exec ai claude --dangerously-skip-permissions