[FEATURE]: debian based container #6699

Open
opened 2026-02-16 18:04:59 -05:00 by yindo · 2 comments
Owner

Originally created by @extreme4all on GitHub (Jan 18, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

problem

Currently, all OpenCode container images are Alpine-based.
This creates a limitation for users who want to include OpenCode in a non-Alpine base image, such as a Debian-based Python image for development.

For example, the following approach does not work:

FROM python:3.12-bookworm
COPY --from=ghcr.io/anomalyco/opencode:1.1.25 /usr/local/bin/opencode /usr/bin/
ENTRYPOINT ["opencode"]

bash: /usr/bin/opencode: cannot execute: required file not found

with the dive binary inspecting the OpenCode image confirms it is Alpine-based:

ADD alpine-minirootfs-3.23.2-x86_64.tar.gz / # buildkit 
RUN |1 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 /bin/sh -c apk add libgcc libstdc++ ripgrep # buildkit
COPY dist/opencode-linux-x64-baseline-musl/bin/opencode /usr/local/bin/opencode # buildkit
RUN |1 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 /bin/sh -c opencode --version # buildkit

suggestion

Provide multi-platform / multi-distro tagged container images, for example:

  • 1.1.25-alpine
  • 1.1.25-trixie (debian 13)
  • 1.1.25-bookworm (debian 12)

this would enable the following in a container image

FROM python:3.12-bookworm
COPY --from=ghcr.io/anomalyco/opencode:1.1.25-debian /usr/local/bin/opencode /usr/bin/
FROM python:3.12-trixie
COPY --from=ghcr.io/anomalyco/opencode:1.1.25-trixie /usr/local/bin/opencode /usr/bin/
FROM python:3.12-alpine
COPY --from=ghcr.io/anomalyco/opencode:1.1.25-alpine /usr/local/bin/opencode /usr/bin/
Originally created by @extreme4all on GitHub (Jan 18, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request # problem Currently, all OpenCode container images are **Alpine-based**. This creates a limitation for users who want to include OpenCode in a **non-Alpine base image**, such as a Debian-based Python image for development. For example, the following approach does **not work**: ```Docker FROM python:3.12-bookworm COPY --from=ghcr.io/anomalyco/opencode:1.1.25 /usr/local/bin/opencode /usr/bin/ ENTRYPOINT ["opencode"] ``` `bash: /usr/bin/opencode: cannot execute: required file not found` with the dive binary inspecting the OpenCode image confirms it is Alpine-based: ```docker ADD alpine-minirootfs-3.23.2-x86_64.tar.gz / # buildkit RUN |1 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 /bin/sh -c apk add libgcc libstdc++ ripgrep # buildkit COPY dist/opencode-linux-x64-baseline-musl/bin/opencode /usr/local/bin/opencode # buildkit RUN |1 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 /bin/sh -c opencode --version # buildkit ``` # suggestion Provide multi-platform / multi-distro tagged container images, for example: - 1.1.25-alpine - 1.1.25-trixie (debian 13) - 1.1.25-bookworm (debian 12) this would enable the following in a container image ```Docker FROM python:3.12-bookworm COPY --from=ghcr.io/anomalyco/opencode:1.1.25-debian /usr/local/bin/opencode /usr/bin/ ``` ```Docker FROM python:3.12-trixie COPY --from=ghcr.io/anomalyco/opencode:1.1.25-trixie /usr/local/bin/opencode /usr/bin/ ``` ``` FROM python:3.12-alpine COPY --from=ghcr.io/anomalyco/opencode:1.1.25-alpine /usr/local/bin/opencode /usr/bin/ ```
yindo added the discussion label 2026-02-16 18:04:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #649: running opencode fails in alpine / musl based distros - Related to Alpine/musl binary compatibility issues
  • #3876: Segfaults on musl box - Another musl libc incompatibility issue where glibc-linked binaries fail on musl systems

These issues are related to the core problem: the OpenCode container/binary is currently only built for glibc (Alpine uses musl), which prevents running OpenCode in environments with different base libraries. Your feature request for multi-platform/multi-distro container images would address these underlying compatibility issues.

Feel free to ignore if your specific use case requires Debian-based containers for reasons beyond base library compatibility.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #649: running opencode fails in alpine / musl based distros - Related to Alpine/musl binary compatibility issues - #3876: Segfaults on musl box - Another musl libc incompatibility issue where glibc-linked binaries fail on musl systems These issues are related to the core problem: the OpenCode container/binary is currently only built for glibc (Alpine uses musl), which prevents running OpenCode in environments with different base libraries. Your feature request for multi-platform/multi-distro container images would address these underlying compatibility issues. Feel free to ignore if your specific use case requires Debian-based containers for reasons beyond base library compatibility.
Author
Owner
@extreme4all commented on GitHub (Jan 18, 2026): doing some further investigation, base image: https://github.com/anomalyco/opencode/blob/dev/packages/opencode/Dockerfile publish CICD: https://github.com/anomalyco/opencode/blob/dev/.github/workflows/publish.yml#L74 => https://github.com/anomalyco/opencode/blob/dev/script/publish-start.ts#L39 => https://github.com/anomalyco/opencode/blob/dev/packages/opencode/script/publish.ts
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6699