Skip to content

Commit 720ee77

Browse files
committed
(Fix) RAG Folder Fix
1 parent d220996 commit 720ee77

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/Dockerfile.backend

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ RUN pip install --no-cache-dir \
1818

1919
#Copy only runtime files
2020
COPY app.py ./
21-
COPY rag/paper_query.py ./rag
2221
COPY routes ./routes
2322
COPY models ./models
2423
COPY llm ./llm
2524

25+
#Only copy paper_query from rag
26+
RUN mkdir -p rag
27+
COPY rag/paper_query.py ./rag/
28+
RUN touch ./rag/__init__.py
29+
2630
EXPOSE 5000
2731

2832
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--max-requests", "100", "--timeout", "30", "app:app"]

0 commit comments

Comments
 (0)