Vishal Patil commited on
Commit
9459db3
·
verified ·
1 Parent(s): c5ac04e

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -0
Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ libsndfile1 \
7
+ git \
8
+ build-essential \
9
+ && apt-get clean \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ WORKDIR /app
13
+
14
+ # Copy requirements first for caching
15
+ COPY requirements.txt .
16
+
17
+ # Install Python packages
18
+ RUN pip install --no-cache-dir --upgrade pip && \
19
+ pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
20
+ pip install --no-cache-dir ctranslate2==3.24.0 && \
21
+ pip install --no-cache-dir faster-whisper==0.10.1 && \
22
+ pip install --no-cache-dir whisperx==3.1.1 && \
23
+ pip install --no-cache-dir pyannote.audio==3.1.1 && \
24
+ pip install --no-cache-dir gradio==4.26.0 huggingface_hub==0.21.4 && \
25
+ pip install --no-cache-dir pydantic numpy==1.26.4 soundfile librosa
26
+
27
+ # Copy app files
28
+ COPY . .
29
+
30
+ # Expose Gradio port
31
+ EXPOSE 7860
32
+
33
+ # Run the Gradio app
34
+ CMD ["python", "app.py"]