qgallouedec HF Staff commited on
Commit
0acfbe1
·
1 Parent(s): 75955e4

make writable

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -20,9 +20,12 @@ RUN pip install --upgrade pip && \
20
  # Make script executable and move it to PATH
21
  RUN install -m 755 sft.py /usr/local/bin/sft
22
 
23
- # # Set environment variables
24
  ENV HF_HOME=/usr/src/app/.cache/huggingface
25
 
 
 
 
26
  # Expose the Gradio port
27
  EXPOSE 7860
28
  ENV GRADIO_SERVER_NAME="0.0.0.0"
 
20
  # Make script executable and move it to PATH
21
  RUN install -m 755 sft.py /usr/local/bin/sft
22
 
23
+ # Set environment variable for Hugging Face cache
24
  ENV HF_HOME=/usr/src/app/.cache/huggingface
25
 
26
+ # Make /usr/src/app/ a writable directory
27
+ RUN chmod -R 777 /usr/src/app
28
+
29
  # Expose the Gradio port
30
  EXPOSE 7860
31
  ENV GRADIO_SERVER_NAME="0.0.0.0"