Skip to content

Commit

Permalink
add numba caching to be writable in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmandar committed Sep 2, 2024
1 parent afdef76 commit 787c0e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 787c0e0

Please sign in to comment.