ariji1 commited on
Commit
00cd9f5
·
verified ·
1 Parent(s): 872f491

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -15,6 +15,11 @@ COPY . .
15
  RUN pip install --no-cache-dir -U pip wheel setuptools \
16
  && pip install --no-cache-dir -r requirements.txt
17
 
 
 
 
 
 
18
  # Expose FastAPI port
19
  EXPOSE 7860
20
 
 
15
  RUN pip install --no-cache-dir -U pip wheel setuptools \
16
  && pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Configure Hugging Face cache to a writable location
19
+ ENV HF_HOME=/code/.cache \
20
+ HUGGINGFACE_HUB_CACHE=/code/.cache/huggingface
21
+ RUN mkdir -p /code/.cache/huggingface
22
+
23
  # Expose FastAPI port
24
  EXPOSE 7860
25