Spaces:
Sleeping
Sleeping
File size: 463 Bytes
3cf7437 49558bb 3cf7437 49558bb 3cf7437 49558bb 3cf7437 49558bb 3cf7437 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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"] |