yalsaffar commited on
Commit
8385188
·
1 Parent(s): 5466d29

Updated Dockerfile for Hugging Face Spaces deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -44,11 +44,12 @@ ENV PATH=${CUDA_HOME}/bin:${PATH}
44
  # Optionally set LD_LIBRARY_PATH for CUDA libraries
45
  ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
46
 
47
- # Set environment variable for NeMo cache directory
48
- ENV NEMO_NLP_TMP=/app/.cache
 
49
 
50
  # Create cache directory and set permissions
51
- RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
52
 
53
  # Copy the setup script and requirements file into the container
54
  COPY setup.sh requirements.txt /app/
 
44
  # Optionally set LD_LIBRARY_PATH for CUDA libraries
45
  ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
46
 
47
+ # Set environment variable for Hugging Face cache directory
48
+ ENV HF_HOME=/app/.cache/huggingface
49
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
50
 
51
  # Create cache directory and set permissions
52
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache/huggingface
53
 
54
  # Copy the setup script and requirements file into the container
55
  COPY setup.sh requirements.txt /app/