geopromini commited on
Commit
0235168
·
verified ·
1 Parent(s): 35f26df

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. requirements.txt +11 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sử dụng Python 3.9
2
+ FROM python:3.9
3
+
4
+ # Đặt thư mục làm việc
5
+ WORKDIR /code
6
+
7
+ # Copy file requirements và cài đặt thư viện
8
+ COPY ./requirements.txt /code/requirements.txt
9
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
+
11
+ # Tạo thư mục tạm cho video (nếu cần thiết quyền ghi)
12
+ RUN mkdir -p /code/temp_videos && chmod 777 /code/temp_videos
13
+
14
+ # Copy toàn bộ code vào
15
+ COPY . .
16
+
17
+ # Mở cổng 7860 (Bắt buộc đối với Hugging Face Spaces)
18
+ EXPOSE 7860
19
+
20
+ # Lệnh chạy server FastAPI (main.py)
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ pandas
4
+ google-generativeai
5
+ google-api-python-client
6
+ google-auth-httplib2
7
+ google-auth-oauthlib
8
+ httpx
9
+ apscheduler
10
+ openpyxl
11
+ requests