feedlight42 commited on
Commit
9cc9faa
·
1 Parent(s): c510f6e

make cache directory writable

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -13,6 +13,10 @@ RUN pip install --no-cache-dir -r requirements.txt
13
  # Set an environment variable for Hugging Face cache
14
  ENV TRANSFORMERS_CACHE=/app/huggingface_cache
15
 
 
 
 
 
16
  # Step 5: Copy the rest of the application code
17
  COPY . /app/
18
 
 
13
  # Set an environment variable for Hugging Face cache
14
  ENV TRANSFORMERS_CACHE=/app/huggingface_cache
15
 
16
+ # Ensure the cache directory is writable
17
+ RUN mkdir -p /app/huggingface_cache && chmod -R 777 /app/huggingface_cache
18
+
19
+
20
  # Step 5: Copy the rest of the application code
21
  COPY . /app/
22