Jokica17 commited on
Commit
e577888
·
verified ·
1 Parent(s): ffc8eae

update dokerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -8,9 +8,9 @@ COPY app/requirements.txt ./backend-requirements.txt
8
  COPY fe/requirements.txt ./frontend-requirements.txt
9
  RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
10
 
11
- # Set writable cache directory using HF_HOME
12
- ENV HF_HOME=/usr/src/app/hf_cache
13
- RUN mkdir -p /usr/src/app/hf_cache
14
 
15
  # Set PYTHONPATH to ensure all modules are discoverable
16
  ENV PYTHONPATH=/usr/src/app
 
8
  COPY fe/requirements.txt ./frontend-requirements.txt
9
  RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
10
 
11
+ # Set cache directories to /tmp
12
+ ENV HF_HOME=/tmp/huggingface
13
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
14
 
15
  # Set PYTHONPATH to ensure all modules are discoverable
16
  ENV PYTHONPATH=/usr/src/app