Yashashvibhardwaj commited on
Commit
1204afc
·
verified ·
1 Parent(s): b1b26ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -21,11 +21,11 @@ ENV SENTENCE_TRANSFORMERS_HOME=/app/cache
21
  # Pre-download model during build
22
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/clip-ViT-B-32', cache_folder='/app/cache')"
23
 
24
- # Copy rest of the code
25
  COPY . .
26
 
27
- # Build FAISS index at image build time (optional, can be done once locally instead)
28
- RUN python build_index.py
29
 
30
  # Expose port
31
  EXPOSE 7860
 
21
  # Pre-download model during build
22
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/clip-ViT-B-32', cache_folder='/app/cache')"
23
 
24
+ # Copy the rest of the code and prebuilt index + metadata
25
  COPY . .
26
 
27
+ # Remove this line (don’t rebuild index each deploy)
28
+ # RUN python build_index.py
29
 
30
  # Expose port
31
  EXPOSE 7860