Files
mcp/Dockerfile
2026-02-12 16:24:41 +08:00

25 lines
516 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.
FROM python:3.11-slim
# 避免交互与时区问题
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# 安装系统依赖Pandoc
RUN apt-get update \
&& apt-get install -y --no-install-recommends pandoc \
&& rm -rf /var/lib/apt/lists/*
# 安装 Python 依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 拷贝代码和相关资源(包括 ref.docx、color.lua 等)
COPY . .
# 默认启动 MCP 服务器
CMD ["python", "mcp_docx_server.py"]