FROM docker.io/library/python:3.10@sha256:20ca17b2908b0202fc97510a082177357e7737f16dc231d7508b5a7d0cb96fd3 RUN apt-get update && \ apt-get install -y curl && \ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs && \ rm -rf /var/lib/apt/lists/* && \ apt-get clean RUN pip install --no-cache-dir pip -U && \ pip install --no-cache-dir \ datasets \ "huggingface-hub>=0.30" \ "hf-transfer>=0.1.4" \ "protobuf<4" \ "click<8.1" \ "pydantic~=1.0" RUN pip install --no-cache-dir \ gradio[oauth,mcp]==5.29.0 \ "uvicorn>=0.14.0" \ spaces \ mcp==1.8.1 RUN apt-get update && \ apt-get install -y \ git \ git-lfs \ ffmpeg \ libsm6 \ libxext6 \ cmake \ rsync \ libgl1 \ && rm -rf /var/lib/apt/lists/* \ && git lfs install WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 7860 CMD ["python", "app.py"]