FROM node:22-slim # System deps for Claude Code tools RUN apt-get update && apt-get install -y \ git curl jq ripgrep \ python3 python3-pip \ && rm -rf /var/lib/apt/lists/* # Working directory WORKDIR /app # Install agent dependencies COPY agent/package.json agent/package-lock.json* ./ RUN npm install # Copy and build agent code COPY agent/tsconfig.json ./ COPY agent/src/ ./src/ RUN npx tsc # Workspace for agent data (mounted from host) RUN mkdir -p /workspace /workspace/ipc/input /workspace/ipc/messages /workspace/ipc/tasks /workspace/conversations WORKDIR /workspace ENTRYPOINT ["node", "/app/dist/index.js"]