Fix opencode path: installer uses ~/.opencode/bin not ~/.local/bin
All checks were successful
CI / lint-and-test (push) Successful in 38s
Deploy Production / deploy (push) Successful in 1m38s
CI / build (push) Successful in 1m59s

This commit is contained in:
Julia McGhee
2026-03-21 22:34:56 +00:00
parent d9b72d95c0
commit 30ce05f9d7

View File

@@ -42,8 +42,10 @@ RUN apk add --no-cache git github-cli curl ca-certificates
RUN npm install -g @anthropic-ai/claude-code @openai/codex
RUN curl -fsSL https://opencode.ai/install | sh || \
echo "WARN: opencode install failed, skipping"
# Ensure opencode is on PATH (installer puts it in ~/.local/bin which root owns)
RUN if [ -f /root/.local/bin/opencode ]; then cp /root/.local/bin/opencode /usr/local/bin/opencode; fi
# Ensure opencode is on PATH (installer may place it in ~/.opencode/bin or ~/.local/bin)
RUN for p in /root/.opencode/bin/opencode /root/.local/bin/opencode; do \
if [ -f "$p" ]; then cp "$p" /usr/local/bin/opencode; break; fi; \
done
# MCP servers: Gitea (Go binary from builder stage)
COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp