g4free / Dockerfile
Openyx's picture
Update Dockerfile
08bac43 verified
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"]