[PR #11975] feat: Linux multi-arch OpenCode container support #14013

Open
opened 2026-02-16 18:18:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11975

State: open
Merged: No


fixes https://github.com/anomalyco/opencode/issues/9246, this is a suggestion for implementation

What this change does:
This PR updates the OpenCode Dockerfile to support Linux containers with both musl and glibc binaries for x64 and arm64 architectures, enabling multi-distro builds beyond Alpine.

Specifically, the new Dockerfile now supports:

Architecture libc / variant Base image Stage / Binary
x64 musl alpine build-x64-musl
x64 glibc debian build-x64-glibc
x64 baseline (AVX2 fallback) debian build-x64-baseline
arm64 musl alpine build-arm64-musl
arm64 glibc debian build-arm64-glibc

this probably needs some more work to build the images to the registery and for testing
I HAVE NOT DONE ANY TESTING, since i can't build for all arches and i don't know how to get the dist/

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11975 **State:** open **Merged:** No --- fixes https://github.com/anomalyco/opencode/issues/9246, this is a suggestion for implementation What this change does: This PR updates the OpenCode Dockerfile to support Linux containers with both musl and glibc binaries for x64 and arm64 architectures, enabling multi-distro builds beyond Alpine. Specifically, the new Dockerfile now supports: | Architecture | libc / variant | Base image | Stage / Binary | | ------------ | ------------------------ | ---------- | ------------------ | | x64 | musl | alpine | build-x64-musl | | x64 | glibc | debian | build-x64-glibc | | x64 | baseline (AVX2 fallback) | debian | build-x64-baseline | | arm64 | musl | alpine | build-arm64-musl | | arm64 | glibc | debian | build-arm64-glibc | this probably needs some more work to build the images to the registery and for testing I HAVE NOT DONE ANY TESTING, since i can't build for all arches and i don't know how to get the dist/
yindo added the pull-request label 2026-02-16 18:18:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14013