shreyankisiri commited on
Commit
3610c11
·
verified ·
1 Parent(s): 8e112bd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ # Base image with Python
4
+ FROM python:3.9-slim
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy requirements
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application code and ChromaDB directory
16
+ COPY . .
17
+
18
+ # Expose port for FastAPI
19
+ EXPOSE 8000
20
+
21
+ # Command to run the application
22
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]