Mercedes0 commited on
Commit
009267d
·
verified ·
1 Parent(s): 47d90ee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -14
Dockerfile CHANGED
@@ -1,20 +1,11 @@
1
- FROM python:3.11-slim
2
-
3
  WORKDIR /app
4
 
5
- # 安装 unzip 工具
6
- RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
7
-
8
- COPY app.zip .
9
- COPY requirements.txt .
10
- COPY version.txt .
11
- RUN mkdir -p app
12
- # 解压 app.zip 文件
13
- RUN unzip app.zip -d app && rm app.zip
14
 
15
- RUN 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
 
20
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM ghcr.io/zfg454/hajimi:latest
 
2
  WORKDIR /app
3
 
4
+ COPY . .
 
 
 
 
 
 
 
 
5
 
6
+ RUN pip install uv
7
+ RUN uv pip install --system --no-cache-dir -r requirements.txt
8
 
9
+ EXPOSE 7860
 
10
 
11
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]