Yeetek commited on
Commit
d9b08a5
·
verified ·
1 Parent(s): 80191a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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