huoyan-enterprise/mcp-server-demo/Dockerfile

20 lines
392 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 --timeout 120 --retries 10 .
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8010
EXPOSE 8010
CMD ["python", "server.py"]