Pubgbc9799 commited on
Commit
c75f98f
·
verified ·
1 Parent(s): 8983aac

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 1. Python ka base image use karein
2
+ FROM python:3.10-slim
3
+
4
+ # 2. Working directory set karein
5
+ WORKDIR /app
6
+
7
+ # 3. System dependencies install karein (agar terabox library ko chahiye ho)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # 4. Sabse pehle requirements file copy karein
13
+ COPY requirements.txt .
14
+
15
+ # 5. Dependencies install karein
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # 6. Pura code copy karein
19
+ COPY . .
20
+
21
+ # 7. Hugging Face port 7860 use karta hai
22
+ EXPOSE 7860
23
+
24
+ # 8. App ko start karne ki command
25
+ CMD ["python", "app.py"]