drriver commited on
Commit
917b17d
·
verified ·
1 Parent(s): 60016b2

Upload 4 files

Browse files
Files changed (4) hide show
  1. Dockerfile +19 -13
  2. app.zip +3 -0
  3. requirements.txt +6 -6
  4. version.txt +1 -1
Dockerfile CHANGED
@@ -1,14 +1,20 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY ./app /app/app
6
- COPY requirements.txt .
7
- COPY version.txt .
8
-
9
- RUN pip install --no-cache-dir -r requirements.txt
10
-
11
- # 环境变量 (在 Hugging Face Spaces 中设置)
12
- # ENV GEMINI_API_KEYS=your_key_1,your_key_2,your_key_3
13
-
 
 
 
 
 
 
14
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
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"]
app.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0796697c6ce328f019524083b55d79c29825c6dd72b58f3b6bf63d67293bfe1
3
+ size 46449
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
- fastapi
2
- uvicorn
3
- httpx
4
- python-dotenv
5
- requests
6
- apscheduler
7
  jinja2
 
1
+ fastapi
2
+ uvicorn
3
+ httpx
4
+ python-dotenv
5
+ requests
6
+ apscheduler
7
  jinja2
version.txt CHANGED
@@ -1 +1 @@
1
- version=0.0.4
 
1
+ version=0.0.5