Files
workphone-sdk/sdk/Dockerfile
卡若 9118df9eee
Some checks failed
SDK CI / python-compile (push) Has been cancelled
feat: sdk agent、Android 与文档同步至 Gitea
- 新增 sdk/app/agent(Hook/Skills/Anti-ban 等)及 NAS/ADB 脚本
- 更新 Android 端、unified、PHP SDK、Docker Compose
- Soul 文档迁移至 Soul调研/;移除资料目录内 APK
- .gitignore 排除 sdk/tmp、sdk/logs、sdk/tmp_rom

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 18:20:14 +08:00

30 lines
834 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 工作手机SDK v3.1 - Dockerfile含 AI Brain + Hook 模块管理)
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
adb \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY app/ /app/
# Hook 主控依赖的设备端代码FridaManager / wechat_hook_v2.js 等)
COPY agent/ /app/agent/
ENV PYTHONPATH=/app:/app/agent
ENV ENV=production \
AI_BRAIN_ENABLED=true \
AI_BRAIN_API_URL=http://host.docker.internal:3102 \
AI_BRAIN_DEFAULT_MODEL=auto
EXPOSE 8899
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD curl -f http://localhost:8899/health || exit 1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8899"]