VishnuRamDebyez commited on
Commit
4df3d2d
·
verified ·
1 Parent(s): ae49e0f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]