Spaces:
Running
Running
FROM python:3.12-slim | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
curl \ | |
wget \ | |
git \ | |
vim \ | |
nano \ | |
unzip \ | |
zip \ | |
build-essential | |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
apt-get install -y nodejs | |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh | |
ENV PATH=/root/.local/bin:$PATH | |
ENV UV_DEFAULT_INDEX=https://mirrors.aliyun.com/pypi/simple/ | |
ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ | |
RUN pip install --no-cache-dir pydantic mcp-proxy | |
RUN pip install --no-cache-dir fastmcp crawl4ai trafilatura | |
RUN pip install --no-cache-dir gradio mcp openai -U | |
RUN python -m playwright install --with-deps chromium | |
RUN git clone https://github.com/modelscope/mcp-central.git | |
WORKDIR /app/mcp-central/examples/lite_research | |
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"] |