VishnuRamDebyez commited on
Commit
b9ee0ff
·
verified ·
1 Parent(s): 5a1209b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,19 +1,20 @@
1
- # Use an official Python image as the base
2
  FROM python:3.10
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy the application files
8
  COPY . /app
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir --upgrade pip \
12
- && pip install --no-cache-dir fastapi uvicorn langchain-community langchain-text-splitters langchain-google-genai \
13
- langchain-groq qdrant-client python-dotenv
14
 
15
- # Expose the FastAPI default port
16
  EXPOSE 7860
17
 
18
- # Run the application
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # Use an official Python image
2
  FROM python:3.10
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy project files
8
  COPY . /app
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir --upgrade pip \
12
+ && pip install --no-cache-dir -r requirements.txt \
13
+ && pip install --no-cache-dir langgraph
14
 
15
+ # Expose FastAPI port
16
  EXPOSE 7860
17
 
18
+ # Run FastAPI app
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
20
+