init: 汽车零部件智能报价 MCP 服务(ERP + CRM)

This commit is contained in:
dongsk
2026-08-08 20:11:23 +08:00
commit ae992f45a1
16 changed files with 1502 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1
# 两个 MCP 服务共用此 Dockerfile,通过构建参数 SERVICE 选择
# docker build --build-arg SERVICE=mcp-for-erp -t mcp-for-erp .
# docker build --build-arg SERVICE=mcp-for-crm -t mcp-for-crm .
FROM python:3.12-slim
ARG SERVICE
WORKDIR /app
# 依赖单独成层,利用缓存
COPY ${SERVICE}/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# 拷贝服务源码与 SQL(SQL 供 seed.py 使用,远程库已初始化时无需运行)
COPY ${SERVICE}/src /app/src
COPY ${SERVICE}/sql /app/sql
WORKDIR /app/src
EXPOSE 8000
CMD ["python", "server.py"]