Spaces:
Sleeping
Sleeping
| 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"] |