Simrandhiman commited on
Commit
57f3d48
·
verified ·
1 Parent(s): be5392f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -19
Dockerfile CHANGED
@@ -1,29 +1,17 @@
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"]
 
 
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
+ # Install system deps
6
+ RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 && rm -rf /var/lib/apt/lists/*
7
+
8
  # Copy files
9
+ COPY app.py .
10
+ COPY requirements.txt .
11
 
12
+ # Install Python deps
13
+ RUN pip install --no-cache-dir -r requirements.txt
 
14
 
 
15
  EXPOSE 7860
16
 
 
17
  CMD ["python", "app.py"]