srilakshu012456 commited on
Commit
6daed3e
·
verified ·
1 Parent(s): 590bdb0

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +24 -0
  2. requirements.txt +11 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ # Inside the container, we'll work from /app. This is just a path.
4
+ WORKDIR /app
5
+
6
+ # Install dependencies first (better layer caching)
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy your source files
11
+ COPY . .
12
+
13
+ # Helpful envs
14
+ ENV PYTHONUNBUFFERED=1 \
15
+ PYTHONDONTWRITEBYTECODE=1
16
+
17
+ #RUN mkdir -p /data && chmod -R 777 /data
18
+
19
+ # Expose your port (change if you prefer 8000)
20
+ EXPOSE 7860
21
+
22
+ # Run Uvicorn pointing to your ASGI app in main.py
23
+ # Using `python -m uvicorn` is more reliable in containers
24
+ CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ requests
3
+ pydantic
4
+ uvicorn[standard]
5
+ python-dotenv
6
+ google-generativeai
7
+ chromadb
8
+ sentence_transformers
9
+ python-docx
10
+ huggingface_hub
11
+ google-genai