ayubkhonibrokhimzoda commited on
Commit
9ab15ac
·
verified ·
1 Parent(s): d85df36

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -9,6 +9,10 @@ ENV TORCH_HOME=/tmp/torch
9
  ENV TRANSFORMERS_CACHE=/tmp/transformers
10
  ENV NEMO_CACHE_DIR=/tmp/nemo
11
 
 
 
 
 
12
  # Install system dependencies
13
  RUN apt-get update && apt-get install -y \
14
  libsndfile1 \
@@ -26,8 +30,8 @@ RUN pip install --no-cache-dir -r requirements.txt
26
  # Copy application files
27
  COPY . .
28
 
29
- # Create cache directories with proper permissions
30
- RUN mkdir -p /tmp/matplotlib /tmp/huggingface /tmp/torch /tmp/transformers /tmp/nemo && \
31
  chmod -R 777 /tmp
32
 
33
  # Expose Hugging Face port
 
9
  ENV TRANSFORMERS_CACHE=/tmp/transformers
10
  ENV NEMO_CACHE_DIR=/tmp/nemo
11
 
12
+ # Fix Numba caching issues
13
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
14
+ ENV NUMBA_DISABLE_JIT=0
15
+
16
  # Install system dependencies
17
  RUN apt-get update && apt-get install -y \
18
  libsndfile1 \
 
30
  # Copy application files
31
  COPY . .
32
 
33
+ # Create all cache directories with proper permissions
34
+ RUN mkdir -p /tmp/matplotlib /tmp/huggingface /tmp/torch /tmp/transformers /tmp/nemo /tmp/numba_cache && \
35
  chmod -R 777 /tmp
36
 
37
  # Expose Hugging Face port