Fix Dockerfile: Set OPENCODE_CHANNEL env var to avoid git branch detection

This commit is contained in:
southseact-3d
2026-02-16 18:12:47 +00:00
parent 85bb738ad9
commit e0abc08bf0

View File

@@ -44,6 +44,8 @@ ENV HUSKY=0
RUN bun install 2>&1 || (echo "=== BUN INSTALL FAILED ===" && cat /root/.npm/_logs/*.log 2>/dev/null && exit 1)
# Build OpenCode CLI with verbose output
# Set OPENCODE_CHANNEL to avoid git branch detection (which fails because .git is not copied)
ENV OPENCODE_CHANNEL=latest
WORKDIR /opt/opencode-src/packages/opencode
RUN bun run script/build.ts --single 2>&1 || (echo "=== BUILD FAILED ===" && ls -la /opt/opencode-src/packages/opencode/dist 2>/dev/null && exit 1)