Files
agent/mcp/video_task/Dockerfile
kicer d799c4f47f 改名:video_gen → video_task(双工具合并为单工具,op=create/get);image_gen → image_task(单工具,op=create)
- header 前缀同步改为 X-Video-Task-* / X-Image-Task-*(方案 B,agent 侧 config.yml 的 headers 需同步更新)
- docker-compose 服务名 / 容器名 / 调试端口变量(VIDEO_TASK_PORT / IMAGE_TASK_PORT)同步改名
- README(根目录与两份服务文档)按新工具形态重写:op 参数表、curl 示例、架构图
2026-09-23 08:30:02 +08:00

20 lines
614 B
Docker
Raw Permalink 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.
FROM node:22-slim
WORKDIR /app
# 国内构建慢:npm 默认源在国外。想换回官方:
# docker compose build --build-arg NPM_REGISTRY=https://registry.npmjs.org/ mcp_video_task
ARG NPM_REGISTRY=https://mirrors.cloud.tencent.com/npm/
# 复制 package.json 并安装依赖
COPY package.json ./
RUN npm config set registry "$NPM_REGISTRY" && npm install --omit=dev
# 复制源码
COPY . .
EXPOSE 3000
# HTTP 模式:只提供 MCP(/mcp)与 /health;容器外不映射,只在 agent-mcp-net 内被 agent 访问。
CMD ["node", "src/mcp-server.js", "--http", "--port", "3000", "--host", "0.0.0.0"]