Files
clinera-site/pi-worker/Dockerfile
T
Azreen Jamal 19420cc01d feat: add pi-worker service - autonomous Asana task executor & project improvement agent
- Asana REST API client for task polling, section management, and commenting
- Pi CLI executor for running tasks with specialist agent teams
- Task loop: polls Asana To Do/Pi Worker sections, executes tasks, reports results
- Improvement loop: rotates through 8 improvement categories (code quality, security, docs, testing, etc)
- Health server on :8787
- File-based mutex locks with stale lock detection
- Docker + docker-compose deployment config
- deploy.sh for one-command deployment to cr-server-new via SSH/Incus
2026-03-06 15:26:13 +08:00

24 lines
468 B
Docker

FROM oven/bun:1-alpine AS base
WORKDIR /app
# Install pi CLI and dependencies
RUN apk add --no-cache git curl openssh-client
# Copy package files
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile || bun install
# Copy source
COPY . .
# Create logs directory
RUN mkdir -p logs
# Health check
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD curl -f http://localhost:8787/health || exit 1
EXPOSE 8787
CMD ["bun", "run", "src/index.ts"]