hajimi / Dockerfile
clash-linux's picture
Upload 52 files
6ff70f0 verified
raw
history blame contribute delete
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"]