LeomordKaly commited on
Commit
994f8e8
·
verified ·
1 Parent(s): 7992ecd

deploy: rename Dockerfile.hf -> Dockerfile on the Space side

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -204,6 +204,15 @@ ENV SAR_ALLOW_CLOUD_FOR_HIGH=true
204
  # usable but never floods the page on a long-running Space.
205
  ENV SAR_BYOK_AUDIT_MAX_ENTRIES=50
206
 
 
 
 
 
 
 
 
 
 
207
  # Logging
208
  ENV SAR_LOG_LEVEL=INFO
209
 
 
204
  # usable but never floods the page on a long-running Space.
205
  ENV SAR_BYOK_AUDIT_MAX_ENTRIES=50
206
 
207
+ # Force UTF-8 everywhere. HF Spaces' base image can default to a C/POSIX
208
+ # (ASCII) locale, which mangles non-ASCII request text — Arabic queries arrived
209
+ # as "????" and embedded to garbage, so retrieval never matched the Arabic
210
+ # corpus. PYTHONUTF8=1 + a UTF-8 locale make Python handle Arabic/RTL correctly.
211
+ ENV PYTHONUTF8=1
212
+ ENV PYTHONIOENCODING=utf-8
213
+ ENV LANG=C.UTF-8
214
+ ENV LC_ALL=C.UTF-8
215
+
216
  # Logging
217
  ENV SAR_LOG_LEVEL=INFO
218