cconsti commited on
Commit
4fad344
·
verified ·
1 Parent(s): a570747

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -11,7 +11,12 @@ RUN pip install --no-cache-dir transformers datasets accelerate peft torch torch
11
  COPY . .
12
 
13
  # Set a writable cache directory inside the app folder
 
14
  ENV HF_HOME=/app/hf_cache
15
- RUN mkdir -p /app/hf_cache
 
 
 
 
16
  # Set default command (replace with your training script later)
17
  CMD ["python", "train.py"]
 
11
  COPY . .
12
 
13
  # Set a writable cache directory inside the app folder
14
+ # Set writable cache directory inside the app folder
15
  ENV HF_HOME=/app/hf_cache
16
+ ENV HF_DATASETS_CACHE=/app/hf_cache
17
+ ENV TRANSFORMERS_CACHE=/app/hf_cache
18
+
19
+ # Create the cache directory and set correct permissions
20
+ RUN mkdir -p /app/hf_cache/hub && chmod -R 777 /app/hf_cache
21
  # Set default command (replace with your training script later)
22
  CMD ["python", "train.py"]