jagadeesh72 commited on
Commit
af9b179
·
verified ·
1 Parent(s): 8f61c12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements first
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy all files
17
+ COPY . .
18
+
19
+ # Expose port 7860
20
+ EXPOSE 7860
21
+
22
+ # Run app with gunicorn
23
+ CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]