FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y \ ffmpeg \ curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip install --no-cache-dir g4f[all] fastapi uvicorn requests COPY . . RUN chmod +x /app/start.sh ENV G4F_PORT = 7860 EXPOSE 7860 8764 CMD ["./start.sh"]