AUMREDKA commited on
Commit
585927a
·
verified ·
1 Parent(s): c5467c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -5,6 +5,11 @@ COPY requirements.txt ./
5
  RUN pip install --no-cache-dir -r requirements.txt
6
  RUN echo "Installed required Python packages."
7
 
 
 
 
 
 
8
  COPY buffalo_rag/ /app/buffalo_rag
9
  COPY main.py /app/main.py
10
  COPY data/ /app/data
 
5
  RUN pip install --no-cache-dir -r requirements.txt
6
  RUN echo "Installed required Python packages."
7
 
8
+ ENV HF_HOME=/app/.cache/huggingface
9
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/transformers
10
+ ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache/sentence_transformers
11
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
12
+
13
  COPY buffalo_rag/ /app/buffalo_rag
14
  COPY main.py /app/main.py
15
  COPY data/ /app/data