VijayPulmamidi commited on
Commit
57759fd
·
verified ·
1 Parent(s): 07571d1

Create Dockerfile

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