FROM node:22-slim

# Install oh-my-opencode (ships its own opencode binary with omo extensions)
RUN npm install -g oh-my-opencode

# Run non-interactive setup — all cloud providers disabled, bifrost configured via opencode.json
RUN oh-my-opencode install --no-tui --claude=no --openai=no --gemini=no --copilot=no

# Config is mounted at runtime via volume
WORKDIR /workspace

ENTRYPOINT ["oh-my-opencode"]
