Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -30,6 +30,15 @@ WORKDIR /code
|
|
30 |
COPY requirements.txt .
|
31 |
RUN pip install --no-cache-dir -r requirements.txt
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
COPY app.py .
|
34 |
|
35 |
EXPOSE 7860
|
|
|
30 |
COPY requirements.txt .
|
31 |
RUN pip install --no-cache-dir -r requirements.txt
|
32 |
|
33 |
+
# ---- PRE-DOWNLOAD Czech SBERT so runtime never pulls ----
|
34 |
+
RUN python - <<'PY'
|
35 |
+
from sentence_transformers import SentenceTransformer
|
36 |
+
SentenceTransformer(
|
37 |
+
'Seznam/simcse-small-e-czech',
|
38 |
+
cache_folder='/tmp/hfcache'
|
39 |
+
)
|
40 |
+
PY
|
41 |
+
|
42 |
COPY app.py .
|
43 |
|
44 |
EXPOSE 7860
|