chemistrymath commited on
Commit
fb5686f
·
verified ·
1 Parent(s): 3fa8c63

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -10,12 +10,12 @@ COPY . /app/
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Set environment variables to fix Matplotlib and Fontconfig issues
14
  ENV MPLCONFIGDIR=/tmp/matplotlib
15
  ENV XDG_CACHE_HOME=/tmp
16
 
17
- # Create the directories to ensure they exist
18
- RUN mkdir -p /tmp/matplotlib /tmp/numba_cache
19
 
20
  # Expose port 7860 (Hugging Face default)
21
  EXPOSE 7860
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Set environment variables for Matplotlib and cache
14
  ENV MPLCONFIGDIR=/tmp/matplotlib
15
  ENV XDG_CACHE_HOME=/tmp
16
 
17
+ # Ensure the directories exist and set correct permissions
18
+ RUN mkdir -p /tmp/matplotlib /tmp/numba_cache && chmod -R 777 /tmp/matplotlib /tmp/numba_cache
19
 
20
  # Expose port 7860 (Hugging Face default)
21
  EXPOSE 7860