Spaces:
Running
Running
Download Dockerfile from pouluo/gemini-web2api: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/pouluo/gemini-web2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pouluo/gemini-web2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pouluo/gemini-web2api/resolve/main/Dockerfile
302 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # 项目本身零依赖(全用 Python 标准库),不需要 pip install | |
| COPY gemini_web2api.py . | |
| # HF Spaces 默认把外部流量路由到 7860 | |
| EXPOSE 7860 | |
| # 跑起来,host 默认就是 0.0.0.0 | |
| CMD ["python", "gemini_web2api.py", "--port", "7860"] |