Files
it-tools-pro/docker/it-tools-relay/Dockerfile
T
3970260761 c75f2882f7 feat(mcp): MCP 功能页 + 顶栏入口 + Admin 调用记录 + nginx 反代
- /mcp-connect 功能页:连接信息/令牌管理/接入后怎么使用(三步+13场景话术+排错)/工具清单/注意事项
- 已购授权机自动显示主令牌+配置自动带真实令牌(打开即复制即用);未授权显示购买引导
- 右上角 MCP 入口(Plug);Admin 左侧「MCP 调用」页(总览/排行/流水)
- nginx location ~ ^/mcp(/|\$) 边界反代(防吞 /mcp-connect SPA 路由)
- WIDE_TOOLS/locales/relay in-repo 副本同步
2026-11-12 16:47:06 +08:00

20 lines
949 B
Docker

FROM python:3.10-slim-bookworm
# calibre provides ebook-convert: docx/pdf/txt/rtf/odt/epub/mobi/azw3/html interop
RUN apt-get update \
&& apt-get install -y --no-install-recommends calibre ffmpeg fonts-wqy-zenhei \
&& rm -rf /var/lib/apt/lists/*
# audio tools: Piper (local neural TTS) + faster-whisper (local ASR)
# models are pre-downloaded on the host (build env has no internet)
RUN pip install --no-cache-dir piper-tts faster-whisper
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple "rembg[cpu]"
COPY hf-cache /root/.cache/huggingface
COPY piper-models /app/piper-models
# AI 图片: u2net 抠图模型(预下载) + waifu2x-ncnn-vulkan 无损放大(CPU)
COPY ai-models/u2net.onnx /root/.u2net/u2net.onnx
COPY waifu2x/waifu2x-ncnn-vulkan-20220728-ubuntu /app/waifu2x
WORKDIR /app
COPY server.py video_ops.py audio_ops.py mcp_ops.py .
ENV HF_HOME=/root/.cache/huggingface
EXPOSE 8091
CMD ["python", "server.py"]