From 85bb738ad9092e2218c7829ecb3058e7d307beed Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Mon, 16 Feb 2026 16:58:09 +0000 Subject: [PATCH] Add debugging output to capture build errors --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4b96fa..7810a73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,11 +41,11 @@ RUN git config --global url."https://github.com/".insteadOf "ssh://git@github.co # Install dependencies at root level first (for workspaces) ENV HUSKY=0 -RUN bun install 2>&1 +RUN bun install 2>&1 || (echo "=== BUN INSTALL FAILED ===" && cat /root/.npm/_logs/*.log 2>/dev/null && exit 1) -# Build OpenCode CLI - run from root directory where package.json is -WORKDIR /opt/opencode-src -RUN cd packages/opencode && bun run script/build.ts --single 2>&1 || (echo "Build failed, checking logs..." && cat /tmp/build.log 2>/dev/null || echo "No log file" && exit 1) +# Build OpenCode CLI with verbose output +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) # Final stage FROM ubuntu:24.04