Commit
·
589ab3b
1
Parent(s):
48780b3
updated Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
|
@@ -11,6 +11,20 @@ WORKDIR /app
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Copy application code
|
| 15 |
COPY . .
|
| 16 |
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
|
| 15 |
+
RUN python - <<'PY'
|
| 16 |
+
from huggingface_hub import snapshot_download, hf_hub_download
|
| 17 |
+
# Sentence-Transformer
|
| 18 |
+
snapshot_download("BAAI/bge-base-en-v1.5")
|
| 19 |
+
# LoRA-merged Mistral
|
| 20 |
+
snapshot_download("samyakshrestha/merged-finetuned-mistral")
|
| 21 |
+
# FAISS index & metadata
|
| 22 |
+
hf_hub_download("samyakshrestha/merged-finetuned-mistral",
|
| 23 |
+
"data/faiss_index/faiss_index.bin")
|
| 24 |
+
hf_hub_download("samyakshrestha/merged-finetuned-mistral",
|
| 25 |
+
"data/faiss_index/chunk_metadata.json")
|
| 26 |
+
PY
|
| 27 |
+
|
| 28 |
# Copy application code
|
| 29 |
COPY . .
|
| 30 |
|