tejani commited on
Commit
271b2e9
·
verified ·
1 Parent(s): 23ca9bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -17,11 +17,11 @@ RUN apt-get update && apt-get install -y \
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
 
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 /app/configs /app/results /app/.openvino_telemetry \
21
+ && chmod -R 777 /.cache /app
22
 
23
+ # Set HF_HOME for Hugging Face cache (replacing TRANSFORMERS_CACHE)
24
+ ENV HF_HOME=/app/.cache/huggingface
25
 
26
  # Upgrade pip and install dependencies
27
  RUN pip install --upgrade pip