Spaces:
Sleeping
Sleeping
Commit ·
67adee2
1
Parent(s): d5aebee
fix: remove local hf_models copy, let model download on startup
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -16,14 +16,11 @@ COPY src/ ./src/
|
|
| 16 |
COPY static/ ./static/
|
| 17 |
COPY api.py .
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
COPY hf_models/ /root/.cache/huggingface/hub/
|
| 21 |
-
ENV TRANSFORMERS_OFFLINE=1
|
| 22 |
-
ENV HF_DATASETS_OFFLINE=1
|
| 23 |
|
| 24 |
# Qdrant storage và BM25 index mount từ volume
|
| 25 |
VOLUME ["/app/qdrant_storage", "/app/data"]
|
| 26 |
|
| 27 |
-
EXPOSE
|
| 28 |
|
| 29 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 16 |
COPY static/ ./static/
|
| 17 |
COPY api.py .
|
| 18 |
|
| 19 |
+
# Model sẽ được download tự động lần đầu chạy
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Qdrant storage và BM25 index mount từ volume
|
| 22 |
VOLUME ["/app/qdrant_storage", "/app/data"]
|
| 23 |
|
| 24 |
+
EXPOSE 7860
|
| 25 |
|
| 26 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|