kartikmandar commited on
Commit
787c0e0
1 Parent(s): afdef76

add numba caching to be writable in docker

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -30,11 +30,16 @@ RUN conda run -n stingray_env pip install --no-cache-dir astropy \
30
  h5py \
31
  datashader
32
 
 
 
 
33
  # Copy the application code
34
  COPY . .
35
 
36
  # Create the necessary directories with appropriate permissions
37
  RUN mkdir -p /code/files/loaded-data && chmod -R 777 /code/files
 
 
38
 
39
  # Set the shell to activate the Conda environment by default
40
  SHELL ["conda", "run", "-n", "stingray_env", "/bin/bash", "-c"]
 
30
  h5py \
31
  datashader
32
 
33
+ # Set environment variables
34
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
35
+
36
  # Copy the application code
37
  COPY . .
38
 
39
  # Create the necessary directories with appropriate permissions
40
  RUN mkdir -p /code/files/loaded-data && chmod -R 777 /code/files
41
+ RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache
42
+
43
 
44
  # Set the shell to activate the Conda environment by default
45
  SHELL ["conda", "run", "-n", "stingray_env", "/bin/bash", "-c"]