AshDavid12 commited on
Commit
1bd5368
·
1 Parent(s): 22cb070

trying to build-tempdir

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -22,10 +22,13 @@ RUN pip install -r requirements.txt
22
  # Install the specific model using faster-whisper
23
  #RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
24
  # Set the SENTENCE_TRANSFORMERS_HOME environment variable to a writable directory
 
25
  ENV SENTENCE_TRANSFORMERS_HOME="/tmp/.cache/sentence_transformers"
 
 
 
 
26
 
27
- # Ensure the cache directory exists
28
- RUN mkdir -p $SENTENCE_TRANSFORMERS_HOME
29
 
30
 
31
  # Add your Python scripts
 
22
  # Install the specific model using faster-whisper
23
  #RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
24
  # Set the SENTENCE_TRANSFORMERS_HOME environment variable to a writable directory
25
+ # Set environment variables for cache directories
26
  ENV SENTENCE_TRANSFORMERS_HOME="/tmp/.cache/sentence_transformers"
27
+ ENV HF_HOME="/tmp/.cache/huggingface"
28
+
29
+ # Ensure the cache directories exist
30
+ RUN mkdir -p $SENTENCE_TRANSFORMERS_HOME $HF_HOME
31
 
 
 
32
 
33
 
34
  # Add your Python scripts