Update Dockerfile
Browse files- 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
|