Kareman commited on
Commit
fd681ee
·
1 Parent(s): 7e3de10
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -16,6 +16,9 @@ RUN apt-get update && apt-get install -y \
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
 
 
19
  # Copy all project files
20
  COPY . .
21
 
 
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Pre-download the embedding model during build
20
+ RUN python -c "from langchain_community.embeddings import HuggingFaceEmbeddings; HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')"
21
+
22
  # Copy all project files
23
  COPY . .
24