ayushpfullstack commited on
Commit
c6ce80e
·
verified ·
1 Parent(s): c9b0961

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -16,6 +16,10 @@ WORKDIR /app
16
  # Set a writable cache directory for Hugging Face models
17
  ENV HF_HOME=/app/cache
18
 
 
 
 
 
19
  # Copy and install Python dependencies
20
  COPY requirements.txt .
21
  RUN pip3 install --no-cache-dir -r requirements.txt
 
16
  # Set a writable cache directory for Hugging Face models
17
  ENV HF_HOME=/app/cache
18
 
19
+ # ⭐⭐⭐ ADD THIS LINE ⭐⭐⭐
20
+ # Create the cache directory and give it open permissions
21
+ RUN mkdir -p /app/cache && chmod 777 /app/cache
22
+
23
  # Copy and install Python dependencies
24
  COPY requirements.txt .
25
  RUN pip3 install --no-cache-dir -r requirements.txt