dAWkkkk commited on
Commit
483e7fd
·
verified ·
1 Parent(s): 6236cf1

Upload 5 files

Browse files
Files changed (5) hide show
  1. Dockerfile +20 -0
  2. app.zip +3 -0
  3. requirements.txt +7 -0
  4. sadassdasda.txt +1 -0
  5. version.txt +1 -0
Dockerfile ADDED
@@ -0,0 +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"]
app.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e377f5e47c6429e5c29d498a46b230032746fc38f4929d3fd39ee5ba5c64c8b6
3
+ size 46781
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ httpx
4
+ python-dotenv
5
+ requests
6
+ apscheduler
7
+ jinja2
sadassdasda.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ asdafdkagdakjb
version.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ version=0.0.5