g4f / Dockerfile
1TSnakers's picture
Create Dockerfile
91b2847 verified
raw
history blame contribute delete
458 Bytes
# Use an official Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install dependencies (curl added for debugging or future needs)
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install g4f with extras
RUN pip install --upgrade pip && pip install -U "g4f[all]"
# Expose port (for --port 7860)
EXPOSE 7860
# Start the g4f server with debug
CMD ["python", "-m", "g4f", "--port", "7860", "--debug"]