Geoffrey Kip commited on
Commit
5760cf7
·
1 Parent(s): 1b3c5a6

Fix: Optimize dependencies to prevent Docker build timeout

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. requirements.txt +7 -4
Dockerfile CHANGED
@@ -15,6 +15,9 @@ RUN apt-get update && apt-get install -y \
15
  # Copy the requirements file into the container at /app
16
  COPY requirements.txt .
17
 
 
 
 
18
  # Install any needed packages specified in requirements.txt
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
 
15
  # Copy the requirements file into the container at /app
16
  COPY requirements.txt .
17
 
18
+ # Upgrade pip to ensure latest resolver
19
+ RUN pip install --upgrade pip
20
+
21
  # Install any needed packages specified in requirements.txt
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
requirements.txt CHANGED
@@ -1,13 +1,13 @@
1
  streamlit
2
  requests
3
  python-dotenv
4
- langchain
5
- langchain-community
6
  langchain-google-genai==2.0.0
7
  lancedb
8
  lark
9
  langchain-huggingface
10
- llama-index
11
  llama-index-vector-stores-lancedb
12
  llama-index-embeddings-huggingface
13
  llama-index-llms-gemini
@@ -16,4 +16,7 @@ streamlit-agraph
16
  folium
17
  streamlit-folium
18
  rank_bm25
19
- llama-index-retrievers-bm25
 
 
 
 
1
  streamlit
2
  requests
3
  python-dotenv
4
+ langchain>=0.3.0
5
+ langchain-community>=0.3.0
6
  langchain-google-genai==2.0.0
7
  lancedb
8
  lark
9
  langchain-huggingface
10
+ llama-index>=0.12.0
11
  llama-index-vector-stores-lancedb
12
  llama-index-embeddings-huggingface
13
  llama-index-llms-gemini
 
16
  folium
17
  streamlit-folium
18
  rank_bm25
19
+ llama-index-retrievers-bm25
20
+ # Explicit pins to prevent backtracking
21
+ rdflib>=7.0.0
22
+ PyYAML>=6.0