garvitcpp commited on
Commit
31ad0c4
·
verified ·
1 Parent(s): da387f8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -1,3 +1,4 @@
 
1
  FROM python:3.10.13-slim
2
 
3
  WORKDIR /app
@@ -13,6 +14,9 @@ COPY requirements.txt .
13
  # Install Python dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
 
 
16
  # Copy application code
17
  COPY . .
18
 
 
1
+ # Add to your Dockerfile (before COPY . .)
2
  FROM python:3.10.13-slim
3
 
4
  WORKDIR /app
 
14
  # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Pre-download SentenceTransformer model during build
18
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2', cache_folder='/app/models_cache')"
19
+
20
  # Copy application code
21
  COPY . .
22