tejani commited on
Commit
cb70ef6
·
verified ·
1 Parent(s): a2a7196

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -22,12 +22,12 @@ RUN git clone https://github.com/rupeshs/fastsdcpu.git .
22
  RUN python -m venv env
23
 
24
  # Set environment variables for Hugging Face cache and OpenVINO telemetry
25
- ENV TRANSFORMERS_CACHE=/app/.cache/huggingface \
26
- HF_HOME=/app/.cache/huggingface \
27
  OPENVINO_TELEMETRY_DIR=/app/telemetry
28
 
29
- # Create cache and telemetry directories
30
- RUN mkdir -p /app/.cache/huggingface /app/telemetry && chmod -R 777 /app/.cache /app/telemetry
 
31
 
32
  # Activate virtual environment and install Python dependencies
33
  RUN . env/bin/activate && pip install --no-cache-dir -r requirements.txt
 
22
  RUN python -m venv env
23
 
24
  # Set environment variables for Hugging Face cache and OpenVINO telemetry
25
+ ENV HF_HOME=/app/.cache/huggingface \
 
26
  OPENVINO_TELEMETRY_DIR=/app/telemetry
27
 
28
+ # Create cache, telemetry, and configs directories with write permissions
29
+ RUN mkdir -p /app/.cache/huggingface /app/telemetry /app/configs && \
30
+ chmod -R 777 /app/.cache /app/telemetry /app/configs
31
 
32
  # Activate virtual environment and install Python dependencies
33
  RUN . env/bin/activate && pip install --no-cache-dir -r requirements.txt