LahiruD95 commited on
Commit
8a80e2d
·
1 Parent(s): ee7c50d

update docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -21,6 +21,9 @@ RUN apt-get update && \
21
  # 2️⃣ Set work directory
22
  WORKDIR /app
23
 
 
 
 
24
  # 3️⃣ Copy & install Python deps first (layer cache)
25
  COPY requirements.txt .
26
  RUN pip install --no-cache-dir -r requirements.txt
 
21
  # 2️⃣ Set work directory
22
  WORKDIR /app
23
 
24
+ # 2️⃣.b Ensure /data cache directory exists and is writable (HF Spaces persistent volume)
25
+ RUN mkdir -p /data/.cache/huggingface && chmod -R 777 /data/.cache
26
+
27
  # 3️⃣ Copy & install Python deps first (layer cache)
28
  COPY requirements.txt .
29
  RUN pip install --no-cache-dir -r requirements.txt