Ahmadkhan12 commited on
Commit
424d34c
·
verified ·
1 Parent(s): bae40e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -20,9 +20,9 @@ COPY requirements.txt .
20
  # Install Python dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # Create a directory for numba cache
24
- RUN mkdir -p /root/.cache/numba
25
- RUN chmod -R 777 /root/.cache/numba
26
 
27
  # Copy the application code into the container
28
  COPY app.py .
 
20
  # Install Python dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Create a writable directory for numba cache
24
+ RUN mkdir -p /tmp/numba_cache
25
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
26
 
27
  # Copy the application code into the container
28
  COPY app.py .