Arvind2006 commited on
Commit
0ee7f87
·
verified ·
1 Parent(s): 3068b6b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -10
Dockerfile CHANGED
@@ -1,10 +1,18 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY . .
6
-
7
- RUN pip install --upgrade pip
8
- RUN pip install -r requirements.txt
9
-
10
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # System deps (important for faiss & torch)
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt .
12
+
13
+ RUN pip install --upgrade pip \
14
+ && pip install --no-cache-dir -r requirements.txt
15
+
16
+ COPY . .
17
+
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]