huoyan-enterprise/mcp-server-demo/Dockerfile

27 lines
552 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml ./
COPY excel_analyzer.py server.py ./
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir \
"mcp>=1.27.2" \
"python-dotenv>=1.0.0" \
"httpx>=0.28.0" \
"uvicorn>=0.48.0" \
"pandas>=2.0.0" \
"openpyxl>=3.1.0" \
"xlrd>=2.0.1"
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8010
EXPOSE 8010
CMD ["python", "server.py"]