ATTILA12/SABER
0
1FROM python:3.11-slim
2
3WORKDIR /app
4
5# 安装 unzip 工具
6RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
7
8COPY app.zip .
9COPY requirements.txt .
10COPY version.txt .
11RUN mkdir -p app
12# 解压 app.zip 文件
13RUN unzip app.zip -d app && rm app.zip
14
15RUN pip install --no-cache-dir -r requirements.txt
16
17# 环境变量 (在 Hugging Face Spaces 中设置)
18# ENV GEMINI_API_KEYS=your_key_1,your_key_2,your_key_3
19
20CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]