Skip to content

fix: use native installer + LD_PRELOAD shim for Claude Code on Alpine/musl#14

Merged
thecodeassassin merged 2 commits into
Cloud-Exit:mainfrom
soyjhonathandev:fix/upgrade-alpine-3.22-musl-compat
Mar 12, 2026
Merged

fix: use native installer + LD_PRELOAD shim for Claude Code on Alpine/musl#14
thecodeassassin merged 2 commits into
Cloud-Exit:mainfrom
soyjhonathandev:fix/upgrade-alpine-3.22-musl-compat

Conversation

@soyjhonathandev
Copy link
Copy Markdown
Contributor

@soyjhonathandev soyjhonathandev commented Mar 10, 2026

Fixes issue

#13

  • Replace deprecated npm install with Anthropic's native installer (curl install.sh | bash)
  • Add posix_getdents shim compiled at build time to fix glibc symbol missing in musl (Alpine)
  • Set LD_PRELOAD with libgcompat.so.0 + custom shim so it applies during install and runtime
  • Remove nodejs npm from base image, add libgcc libstdc++ gcompat instead
  • Configure DISABLE_AUTOUPDATER=1 and USE_BUILTIN_RIPGREP=0 for containerized use

@thecodeassassin
Copy link
Copy Markdown
Contributor

The problem is that Anthropic deprecated that install method

We started out with that.

https://code.claude.com/docs/en/setup#deprecated-npm-installation

Not a great long term solution. This would be better:

anthropics/claude-code#29559 (comment)

@soyjhonathandev soyjhonathandev changed the title fix: switch Claude Code install from binary download to npm fix: use native installer + LD_PRELOAD shim for Claude Code on Alpine/musl Mar 11, 2026
@soyjhonathandev
Copy link
Copy Markdown
Contributor Author

The problem is that Anthropic deprecated that install method

We started out with that.

https://code.claude.com/docs/en/setup#deprecated-npm-installation

Not a great long term solution. This would be better:

anthropics/claude-code#29559 (comment)

PR already updated and working with native installer!

@soyjhonathandev
Copy link
Copy Markdown
Contributor Author

Hello, is there any change or action needed? I would like this PR to be merged, as I am very interested in exitbox in a vibecoding framework that I am working on.

@thecodeassassin
Copy link
Copy Markdown
Contributor

Hello, is there any change or action needed? I would like this PR to be merged, as I am very interested in exitbox in a vibecoding framework that I am working on.

Nope, it's perfect. We can merge it. Thanks!

@thecodeassassin thecodeassassin merged commit 5004192 into Cloud-Exit:main Mar 12, 2026
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.

2 participants