Repository navigation
fix: reduce image size by dropping OpenCode V1 and unused platform binaries - #37
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #36.
Changes
opencode-docker→shell-docker: the V1 layer (~520 MB compressed) is no longer shipped. Annpm uninstallon top would only have added whiteouts.@opencode/cli/node_modulesafter install. Its only contents are the platform binaries (optionalDependencieswithout a libc field, so npm installs both the glibc and musl variant). The postinstall hard-links or copies the matching binary intobin/, so the binary survives the delete.--omit=optional, which had no effect.opencode-dockerprovided andshell-dockerlacks:CMD ["opencode"]and an agent-owned~/.config/opencode. Env, user andtinientrypoint are identical.@opencodeexceeds 300 MB.opencode upgradereinstalls the unused libc variant, adding ~200 MB to that sandbox only.Verification (local, arm64)
opencode-docker3.22 GB vsshell-docker2.35 GB (uncompressed, arm64).opencode --version→ v2.0.32, package writable byagent,npm ls -gclean.npm install -g @opencode/cli@2.0.32works.🤖 Generated with Claude Code