FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 WORKDIR /app # Install system dependencies RUN apt-get update && \ apt-get install -y --no-install-recommends \ --fix-missing \ build-essential \ curl \ git && \ rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt /tmp/requirements.txt RUN pip install --upgrade pip && \ pip install --no-cache-dir -r /tmp/requirements.txt # Copy project files COPY . . # Ensure entrypoint script is executable RUN chmod +x docker-entrypoint.sh EXPOSE 7860 8000 8900 ENV API_PORT=8000 \ MCP_PORT=8900 \ GRADIO_PORT=7860 ENTRYPOINT ["./docker-entrypoint.sh"]