LiamKhoaLe commited on
Commit
720aa3c
·
1 Parent(s): 9e6fb11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -12,6 +12,9 @@ WORKDIR /app
12
  COPY . .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
15
  # EXPOSE 7860 (HF automatically maps it)
16
  EXPOSE 7860
17
 
 
12
  COPY . .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Pre-Download SentenceTransformer Model to Avoid Slow Startup
16
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')"
17
+
18
  # EXPOSE 7860 (HF automatically maps it)
19
  EXPOSE 7860
20