From e0abc08bf036e9ac323bbb9de4acf4c0156c5ea4 Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Mon, 16 Feb 2026 18:12:47 +0000 Subject: [PATCH] Fix Dockerfile: Set OPENCODE_CHANNEL env var to avoid git branch detection --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7810a73..ca8d597 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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)