VietCat commited on
Commit
a59205f
·
1 Parent(s): 16deab5

fix permission issue for cache

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -2,9 +2,8 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Dùng cache tại nơi quyền ghi
6
- ENV HF_HOME=/tmp/hf_home
7
- ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
8
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
 
2
 
3
  WORKDIR /app
4
 
5
+ # Đặt biến môi trường cho cache (sử dụng HF_HOME thay vì TRANSFORMERS_CACHE)
6
+ ENV HF_HOME=/tmp/.cache
 
7
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt