| FROM python:3.10-slim | |
| # Install only API dependencies | |
| RUN pip install --no-cache-dir -U "g4f[api]" | |
| EXPOSE 7860 | |
| # Start API server without the GUI frontend | |
| CMD ["python", "-m", "g4f", "api", "--bind", "0.0.0.0:7860", "--no-gui"] |
| FROM python:3.10-slim | |
| # Install only API dependencies | |
| RUN pip install --no-cache-dir -U "g4f[api]" | |
| EXPOSE 7860 | |
| # Start API server without the GUI frontend | |
| CMD ["python", "-m", "g4f", "api", "--bind", "0.0.0.0:7860", "--no-gui"] |