drriver commited on
Commit
b956435
·
verified ·
1 Parent(s): a2906f6

Upload 4 files

Browse files
Files changed (4) hide show
  1. Dockerfile +19 -19
  2. app.zip +2 -2
  3. requirements.txt +6 -6
  4. version.txt +1 -1
Dockerfile CHANGED
@@ -1,20 +1,20 @@
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 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 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e377f5e47c6429e5c29d498a46b230032746fc38f4929d3fd39ee5ba5c64c8b6
3
- size 46781
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:489eab080bbaed0d8c3f9ff31f629b0c2e80dcf2ae87473721a03f83fd00b050
3
+ size 89667
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.5
 
1
+ version=0.1.0