Akwbw commited on
Commit
435e75a
·
verified ·
1 Parent(s): 6574cd7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+
3
+ FROM python:3.10-slim
4
+
5
+ WORKDIR /app
6
+
7
+ # System dependencies: sirf GLib ki zaroorat padegi (opencv-python-headless ke baad)
8
+ RUN apt-get update && \
9
+ apt-get install -y --no-install-recommends \
10
+ libgthread-2.0-0 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Dependencies file ko copy karein
14
+ COPY requirements.txt .
15
+
16
+ # Python dependencies install karein
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Aapki app file ko copy karein
20
+ COPY app.py .
21
+
22
+ EXPOSE 7860
23
+
24
+ # Application ko run karein
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]