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

trying to build-tempdir

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -20,7 +20,13 @@ COPY requirements.txt .
20
  RUN pip install -r requirements.txt
21
 
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
 
25
  # Add your Python scripts
26
  COPY infer.py .
 
20
  RUN pip install -r requirements.txt
21
 
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
32
  COPY infer.py .