Fix opencode install: download musl binary directly from GitHub
Some checks failed
CI / lint-and-test (push) Successful in 36s
Deploy Production / deploy (push) Failing after 3m7s
CI / build (push) Failing after 3m26s

The opencode.ai install script fails in CI (TLS errors, missing $SHELL).
Download the pre-built musl binary directly from GitHub releases instead.
Verified locally on linux/amd64 with PTY spawn.
This commit is contained in:
Julia McGhee
2026-03-21 23:06:03 +00:00
parent 111b189205
commit 033bb1f4e6

View File

@@ -40,8 +40,9 @@ RUN apk add --no-cache git github-cli curl ca-certificates
# Agent CLIs (installed globally before dropping to non-root) # Agent CLIs (installed globally before dropping to non-root)
RUN npm install -g @anthropic-ai/claude-code @openai/codex RUN npm install -g @anthropic-ai/claude-code @openai/codex
RUN SHELL=/bin/sh curl -fsSL https://opencode.ai/install | SHELL=/bin/sh sh && \ RUN ARCH=$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/') && \
cp /root/.opencode/bin/opencode /usr/local/bin/opencode curl -fsSL -L "https://github.com/anomalyco/opencode/releases/latest/download/opencode-linux-${ARCH}-musl.tar.gz" \
| tar xz -C /usr/local/bin opencode
# MCP servers: Gitea (Go binary from builder stage) # MCP servers: Gitea (Go binary from builder stage)
COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp