mike23415 commited on
Commit
345dd3e
·
verified ·
1 Parent(s): 1211a77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -11,6 +11,13 @@ RUN apt-get update && apt-get install -y \
11
  # Create app directory
12
  WORKDIR /app
13
 
 
 
 
 
 
 
 
14
  # Copy files
15
  COPY app.py requirements.txt ./
16
 
 
11
  # Create app directory
12
  WORKDIR /app
13
 
14
+ # Create cache directory and set permissions
15
+ RUN mkdir -p /.cache && chmod 777 /.cache
16
+ # Alternative: Set HF_HOME to a writable location
17
+ ENV HF_HOME=/app/.cache
18
+ ENV TRANSFORMERS_CACHE=/app/.cache
19
+ ENV HF_DATASETS_CACHE=/app/.cache
20
+
21
  # Copy files
22
  COPY app.py requirements.txt ./
23