Simrandhiman commited on
Commit
15d38ad
·
verified ·
1 Parent(s): 752bec4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile for Hugging Face Space or general Docker deployment
2
+ FROM python:3.10-slim
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install system deps for opencv/mediapipe
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ build-essential \
9
+ ffmpeg \
10
+ libgl1 \
11
+ libglib2.0-0 \
12
+ git \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Set workdir
16
+ WORKDIR /app
17
+
18
+ # Copy files
19
+ COPY . /app
20
+
21
+ # Install python deps
22
+ RUN pip install --upgrade pip
23
+ RUN pip install -r requirements.txt
24
+
25
+ # Expose port (Gradio default)
26
+ EXPOSE 7860
27
+
28
+ # Default start command
29
+ CMD ["python", "app.py"]