Update Dockerfile
Browse files- 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 |
-
#
|
| 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
|