tejani commited on
Commit
23ca9bc
·
verified ·
1 Parent(s): 45fa024

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -16,8 +16,12 @@ RUN apt-get update && apt-get install -y \
16
  # Clone the FastSD CPU repository
17
  RUN git clone https://github.com/rupeshs/fastsdcpu.git .
18
 
19
- # Copy and modify requirements.txt
20
- #RUN sed -i 's/gradio==5.6.0/gradio==4.44.1/' requirements.txt
 
 
 
 
21
 
22
  # Upgrade pip and install dependencies
23
  RUN pip install --upgrade pip
 
16
  # Clone the FastSD CPU repository
17
  RUN git clone https://github.com/rupeshs/fastsdcpu.git .
18
 
19
+ # Create and set permissions for writable directories
20
+ RUN mkdir -p /.cache/huggingface/hub /app/configs \
21
+ && chmod -R 777 /.cache /app/configs
22
+
23
+ # Set TRANSFORMERS_CACHE to a writable directory
24
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
25
 
26
  # Upgrade pip and install dependencies
27
  RUN pip install --upgrade pip