Spaces:
Paused
Paused
Download Dockerfile from futranbg/gemini-web2api: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/spaces/futranbg/gemini-web2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/futranbg/gemini-web2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/futranbg/gemini-web2api/resolve/main/Dockerfile
463 Bytes
| FROM python:3.11-slim | |
| # System deps for curl_cffi (Chrome TLS fingerprint impersonation) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libcurl4-openssl-dev \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY gemini_web2api.py . | |
| # HF Spaces routes external traffic to 7860 | |
| EXPOSE 7860 | |
| CMD ["python", "gemini_web2api.py", "--port", "7860"] |