Fix opencode path: installer uses ~/.opencode/bin not ~/.local/bin
This commit is contained in:
@@ -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 npm install -g @anthropic-ai/claude-code @openai/codex
|
||||||
RUN curl -fsSL https://opencode.ai/install | sh || \
|
RUN curl -fsSL https://opencode.ai/install | sh || \
|
||||||
echo "WARN: opencode install failed, skipping"
|
echo "WARN: opencode install failed, skipping"
|
||||||
# Ensure opencode is on PATH (installer puts it in ~/.local/bin which root owns)
|
# Ensure opencode is on PATH (installer may place it in ~/.opencode/bin or ~/.local/bin)
|
||||||
RUN if [ -f /root/.local/bin/opencode ]; then cp /root/.local/bin/opencode /usr/local/bin/opencode; fi
|
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)
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user