magpie installs a subscription's CLI at sign-in with its vendor's
`curl … | bash` (internal/provider/install.go: Cursor, Devin, Grok
Build). The distroless image had no curl and no /usr/bin/env (the
installers' shebang), so that install couldn't run there, and only
Grok Build had a native fallback. bborn2 reported that a Cursor CLI
installed by hand failed with "cannot execute: required file not
found". The image is now debian:12-slim with ca-certificates and
curl. It keeps the nonroot user at uid/gid 65532, HOME and XDG under
/config, the healthcheck, and magpie on PATH. Size: 157MB against
82MB for origin/main's image, both built here on arm64. Running a
feature magpie offers is worth the 75MB.
Changed in review: dropped the branch's GOPROXY build arg, a separate
goal. The comments in install.go and install_test.go that said the
image has no curl now say "had". docs/reference.md and the site's
Docker page (en, zh, ja) say Debian with bash and curl instead of
distroless with busybox.
Run, with OrbStack's docker:
- docker build of this tree and of d783df46c's Dockerfile: 157MB vs
82MB.
- docker run of the new image: health "healthy", user nonroot (id
65532). `curl https://cursor.com/install -fsS | bash` exit 0, then
`~/.local/bin/cursor-agent --version` printed 2026.10.16-e3cb207.
Devin's install.sh installed devin v3000.11.92 (its trailing
`devin setup` said "Login canceled" with no terminal, as on any
host). `devin --version` printed 3000.11.92. bash and `magpie
version` run.
- Old image: `which curl` finds none, and /usr/bin/env doesn't exist.
- A volume written by the old image (file owned 65532) was read and
written by the new image.
- gofmt -l clean; go vet darwin, linux (nogui) and windows clean.
- Full `go test -tags nogui -timeout 45m ./...`: every package ok
except internal/agent and internal/gateway, which timed out at 45m
mid-test (TestConnectSaysHow, TestLargeRequestEndpoints) under a
load average of about 200 from parallel suites. This commit changes
no code those packages build, only comments in internal/provider,
which passed (992s), so they weren't rerun.
Not tried: a Grok Build install inside the image, and a full
in-magpie Cursor/Devin sign-in with a real account in the container.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>