Some checks failed
SDK CI / python-compile (push) Has been cancelled
- 新增 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>
30 lines
834 B
Docker
30 lines
834 B
Docker
# 工作手机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"]
|