Realmeas commited on
Commit
e11e430
·
verified ·
1 Parent(s): 0d4f03b

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +22 -0
dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies including FFmpeg
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set working directory
9
+ WORKDIR /code
10
+
11
+ # Copy requirements and install Python deps
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy app
16
+ COPY app.py .
17
+
18
+ # Expose port
19
+ EXPOSE 7860
20
+
21
+ # Run Gradio
22
+ CMD ["python", "app.py"]