Princeaka commited on
Commit
b7f0e87
·
verified ·
1 Parent(s): 5060784

Create Docker file

Browse files
Files changed (1) hide show
  1. Docker file +24 -0
Docker file ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim-bullseye # Uses Debian Bullseye (stable)
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ git-lfs \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ cmake \
13
+ rsync \
14
+ libgl1-mesa-glx # ← Now guaranteed to work
15
+
16
+ # Install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy your app
21
+ COPY . .
22
+
23
+ # Run Gradio
24
+ CMD ["python", "app.py"]