adilcode-381 commited on
Commit
7fe0c57
·
verified ·
1 Parent(s): 9b00c4c

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +17 -0
  2. requirements.txt +12 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ gcc \
7
+ g++ \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ COPY . .
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]
requirements.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ sentence-transformers
4
+ python-dotenv
5
+ pydantic
6
+ pypdf
7
+ python-docx
8
+ python-multipart
9
+ numpy
10
+ requests
11
+ faiss-cpu
12
+ gunicorn==21.2.0