From 787c0e039d803452c7dc3db3aafbd7a4eacc15fd Mon Sep 17 00:00:00 2001 From: kartikmandar Date: Mon, 2 Sep 2024 21:27:03 +0530 Subject: [PATCH] add numba caching to be writable in docker --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8a3b6a4..f306360 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,11 +30,16 @@ RUN conda run -n stingray_env pip install --no-cache-dir astropy \ h5py \ datashader +# Set environment variables +ENV NUMBA_CACHE_DIR=/tmp/numba_cache + # Copy the application code COPY . . # Create the necessary directories with appropriate permissions RUN mkdir -p /code/files/loaded-data && chmod -R 777 /code/files +RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache + # Set the shell to activate the Conda environment by default SHELL ["conda", "run", "-n", "stingray_env", "/bin/bash", "-c"]