sksameermujahid commited on
Commit
e935a89
·
verified ·
1 Parent(s): 6b4e079

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -37,6 +37,17 @@ RUN apt-get update && apt-get install -y \
37
  curl \
38
  && rm -rf /var/lib/apt/lists/*
39
 
 
 
 
 
 
 
 
 
 
 
 
40
  # Copy requirements first for better caching
41
  COPY requirements.txt .
42
 
 
37
  curl \
38
  && rm -rf /var/lib/apt/lists/*
39
 
40
+ # Create cache directories with proper permissions
41
+ RUN mkdir -p /tmp/huggingface /tmp/matplotlib /tmp/ultralytics /tmp/fontconfig \
42
+ && chmod 777 /tmp/huggingface /tmp/matplotlib /tmp/ultralytics /tmp/fontconfig
43
+
44
+ # Set environment variables for cache directories
45
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
46
+ ENV HF_HOME=/tmp/huggingface
47
+ ENV MPLCONFIGDIR=/tmp/matplotlib
48
+ ENV YOLO_CONFIG_DIR=/tmp/ultralytics
49
+ ENV FONTCONFIG_PATH=/tmp/fontconfig
50
+
51
  # Copy requirements first for better caching
52
  COPY requirements.txt .
53