tejani commited on
Commit
4330211
·
verified ·
1 Parent(s): 0864015

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -19,14 +19,14 @@ RUN git lfs install
19
  # Clone the fastsdcpu repository
20
  RUN git clone https://github.com/rupeshs/fastsdcpu.git .
21
 
22
- # Create a writable cache directory for Hugging Face
23
- RUN mkdir -p /app/.cache/huggingface && \
24
- chmod -R 777 /app/.cache
25
 
26
- # Set environment variables for Hugging Face and Transformers cache
27
  ENV HF_HOME=/app/.cache/huggingface
28
- ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
29
  ENV XDG_CACHE_HOME=/app/.cache
 
30
 
31
  # Install Python dependencies
32
  RUN python -m venv env && \
@@ -39,7 +39,8 @@ RUN python -m venv env && \
39
  RUN git clone https://huggingface.co/latent-consistency/lcm-lora-sdv1-5 /models/lcm-lora-sdv1-5
40
 
41
  # Configure the model path
42
- RUN echo "/models/lcm-lora-sdv1-5" > configs/lcm-lora-models.txt
 
43
 
44
  # Expose the API port
45
  EXPOSE 8000
 
19
  # Clone the fastsdcpu repository
20
  RUN git clone https://github.com/rupeshs/fastsdcpu.git .
21
 
22
+ # Create a writable cache directory for Hugging Face and ensure configs is writable
23
+ RUN mkdir -p /app/.cache/huggingface /app/configs && \
24
+ chmod -R 777 /app/.cache /app/configs
25
 
26
+ # Set environment variables for Hugging Face cache and OpenVINO telemetry
27
  ENV HF_HOME=/app/.cache/huggingface
 
28
  ENV XDG_CACHE_HOME=/app/.cache
29
+ ENV OPENVINO_TELEMETRY=0
30
 
31
  # Install Python dependencies
32
  RUN python -m venv env && \
 
39
  RUN git clone https://huggingface.co/latent-consistency/lcm-lora-sdv1-5 /models/lcm-lora-sdv1-5
40
 
41
  # Configure the model path
42
+ RUN echo "/models/lcm-lora-sdv1-5" > configs/lcm-lora-models.txt && \
43
+ chmod 666 configs/lcm-lora-models.txt
44
 
45
  # Expose the API port
46
  EXPOSE 8000