AlyanAkram commited on
Commit
af4e7c9
·
verified ·
1 Parent(s): cf5c434

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -17,9 +17,10 @@ ENV HF_HUB_DISABLE_SYMLINKS_WARNING=1
17
  ENV HF_HUB_DISABLE_XET=1
18
  ENV NLTK_DATA=/tmp/nltk_data
19
 
20
- # Create required directories
21
- # Create required directories
22
- RUN mkdir -p /tmp/hf_home /tmp/nltk_data /tmp/reports /tmp/rewritten_outputs
 
23
 
24
  # Optional: expose as env variable
25
  ENV REWRITTEN_OUTPUTS_DIR=/tmp/rewritten_outputs
 
17
  ENV HF_HUB_DISABLE_XET=1
18
  ENV NLTK_DATA=/tmp/nltk_data
19
 
20
+ # Create required directories and ensure proper permissions
21
+ RUN mkdir -p /tmp/hf_home/models /tmp/hf_home/hub /tmp/nltk_data /tmp/reports && \
22
+ chmod -R 777 /tmp/hf_home /tmp/nltk_data /tmp/reports
23
+
24
 
25
  # Optional: expose as env variable
26
  ENV REWRITTEN_OUTPUTS_DIR=/tmp/rewritten_outputs