FROM oven/bun:1-debian # 1. Python aur build tools install karo (Zaroori!) RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ build-essential \ g++ \ git \ curl \ && rm -rf /var/lib/apt/lists/* # 2. OpenCode clone karo RUN git clone -b dev https://github.com/anomalyco/opencode.git /app WORKDIR /app RUN bun install # 3. Binary build karo RUN bun build --compile -o /app/opencode ./packages/opencode/src/index.ts # 4. Setup ENV OPENCODE_DATA_DIR=/data WORKDIR /data EXPOSE 7860 CMD ["/app/opencode", "web", "--port", "7860"]