tmt3103 commited on
Commit
2b15014
·
1 Parent(s): fcf47bd
Files changed (2) hide show
  1. Dockerfile +5 -8
  2. requirements.txt +1 -0
Dockerfile CHANGED
@@ -3,18 +3,15 @@ FROM python:3.9-slim
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy requirements.txt
7
- COPY requirements.txt .
8
- COPY setup.py .
9
 
10
- # Cài dependencies
11
- RUN pip install -r requirements.txt
12
-
13
- # Copy code
14
  COPY . .
15
 
16
  # Expose port
17
  EXPOSE 7860
18
 
19
  # Run app
20
- CMD ["python", "app.py"]
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy
7
+ COPY requirements.txt setup.py ./
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy
 
 
 
11
  COPY . .
12
 
13
  # Expose port
14
  EXPOSE 7860
15
 
16
  # Run app
17
+ CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -7,6 +7,7 @@ pinecone[grpc]
7
  langchain-pinecone
8
  langchain_community
9
  langchain_openai
 
10
  langchain_experimental
11
  langchain_google_genai
12
  -e .
 
7
  langchain-pinecone
8
  langchain_community
9
  langchain_openai
10
+ langchain-huggingface
11
  langchain_experimental
12
  langchain_google_genai
13
  -e .