abubasith86 commited on
Commit
9a133dc
·
verified ·
1 Parent(s): 1bc6c34

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -54,6 +54,12 @@ RUN git clone https://github.com/abubasith456/Ai-Knowledgebase.git .
54
  # Move into the 'backend' directory
55
  WORKDIR /app/backend
56
 
 
 
 
 
 
 
57
  # Install Python dependencies
58
  RUN pip install --no-cache-dir -r requirements.txt
59
 
 
54
  # Move into the 'backend' directory
55
  WORKDIR /app/backend
56
 
57
+ # Create a temp directory for uploads/cache with full permissions
58
+ RUN mkdir -p /temp && chmod -R 777 /temp
59
+
60
+ # Set environment variable for EasyOCR cache
61
+ ENV EASYOCR_CACHE=/temp/.EasyOCR
62
+
63
  # Install Python dependencies
64
  RUN pip install --no-cache-dir -r requirements.txt
65