Seniordev22 commited on
Commit
64ee499
·
verified ·
1 Parent(s): d123300

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Official Hugging Face recommended base for Python
2
+ FROM python:3.10-slim
3
+
4
+ # Dev Mode support ke liye (recommended by HF)
5
+ RUN useradd -m -u 1000 user
6
+ ENV HOME=/home/user \
7
+ PATH=/home/user/.local/bin:$PATH \
8
+ PYTHONUNBUFFERED=1
9
+
10
+ WORKDIR /code
11
+
12
+ # Dependencies install karo
13
+ COPY requirements.txt /code/requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
+
16
+ # Apna code copy karo
17
+ COPY . /code
18
+
19
+ # Expose port (Hugging Face ke liye 7860 best hai)
20
+ EXPOSE 7860
21
+
22
+ # Run command - Gradio app ko launch karo
23
+ CMD ["python", "app.py"]