gemini-web2api / Dockerfile
pouluo's picture
v2.0: curl_cffi Chrome TLS fingerprinting + upstream model migration
3cf7437
Raw
History Blame Contribute Delete
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"]