karthikeya1212 commited on
Commit
4d999f2
·
verified ·
1 Parent(s): 40a6dc1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python 3.11 slim image
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ git \
10
+ wget \
11
+ curl \
12
+ unzip \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Copy project files
16
+ COPY . .
17
+
18
+ # Install Python dependencies
19
+ RUN pip install --upgrade pip
20
+ RUN pip install -r requirements.txt
21
+
22
+ # Expose port
23
+ EXPOSE 8000
24
+
25
+ # Run FastAPI with uvicorn
26
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]