Realmeas commited on
Commit
2aa4d91
·
verified ·
1 Parent(s): c1cf440

Create Dockerfile

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