Spaces:
Paused
Paused
Download Dockerfile from clash-linux/hajimi: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/clash-linux/hajimi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/clash-linux/hajimi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/clash-linux/hajimi/resolve/main/Dockerfile
585 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # 安装 unzip 工具 (不再需要,因为我们不解压了) | |
| # RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/* | |
| # 复制项目文件 | |
| COPY app/ ./app | |
| COPY requirements.txt . | |
| COPY version.txt . | |
| # RUN mkdir -p app # 不再需要,COPY 指令会自动创建目标目录 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 环境变量 (在 Hugging Face Spaces 中设置) | |
| # ENV GEMINI_API_KEYS=your_key_1,your_key_2,your_key_3 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |