Download Dockerfile from stalkerrr/g4f: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/stalkerrr/g4f/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/stalkerrr/g4f/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/stalkerrr/g4f/resolve/main/Dockerfile
332 Bytes
| 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"] | |