Hasitha16 commited on
Commit
9cfb582
Β·
verified Β·
1 Parent(s): e83f844

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -16,8 +16,10 @@ ENV PYTHONUNBUFFERED=1
16
  ENV HF_HOME=/tmp/hf-home
17
  ENV TRANSFORMERS_CACHE=/tmp/hf-cache
18
  ENV NLTK_DATA=/tmp/nltk_data
19
- ENV HOME=/tmp # πŸ‘ˆ fixes default fallback for Streamlit
20
- ENV XDG_CONFIG_HOME=/tmp # πŸ‘ˆ fixes config path
 
 
21
 
22
  # Install Python dependencies
23
  RUN pip install --upgrade pip
 
16
  ENV HF_HOME=/tmp/hf-home
17
  ENV TRANSFORMERS_CACHE=/tmp/hf-cache
18
  ENV NLTK_DATA=/tmp/nltk_data
19
+
20
+ # Fix Streamlit writing to restricted folder
21
+ ENV HOME=/tmp
22
+ ENV XDG_CONFIG_HOME=/tmp
23
 
24
  # Install Python dependencies
25
  RUN pip install --upgrade pip