TANMIHA commited on
Commit
fdf4d8d
·
1 Parent(s): f1c2f68

Fix Docker pip hash issue and dependency install

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -5
  2. requirements.txt +2 -1
Dockerfile CHANGED
@@ -1,17 +1,15 @@
1
- # Use Python 3.10 base image
2
  FROM python:3.10
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy all project files
8
  COPY . .
9
 
 
 
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose Flask port
14
  EXPOSE 8000
15
 
16
- # Run the server
17
  CMD ["python", "server.py"]
 
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY . .
6
 
7
+ # Upgrade pip FIRST (critical)
8
+ RUN pip install --upgrade pip
9
+
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
13
  EXPOSE 8000
14
 
 
15
  CMD ["python", "server.py"]
requirements.txt CHANGED
@@ -11,7 +11,8 @@ langchain-ibm==0.3.4
11
  huggingface-hub==0.36.0
12
  transformers==4.43.3
13
  tokenizers==0.19.1
14
- sentence-transformers==2.7.0
 
15
 
16
  torch==2.0.1
17
  chromadb
 
11
  huggingface-hub==0.36.0
12
  transformers==4.43.3
13
  tokenizers==0.19.1
14
+ sentence-transformers
15
+
16
 
17
  torch==2.0.1
18
  chromadb