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

docerfile update

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -8,9 +8,12 @@ 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 PYTHONPATH to ensure all modules are discoverable
12
  ENV PYTHONPATH=/usr/src/app
13
- ENV TRANSFORMERS_CACHE=/usr/src/app/cache
14
 
15
  # Copy backend files
16
  COPY config.py ./config.py
 
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
 
17
 
18
  # Copy backend files
19
  COPY config.py ./config.py