Vishal Patil commited on
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
|
@@ -1,34 +1,38 @@
|
|
| 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 |
-
|
| 34 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# Install system dependencies including ffmpeg + pkg-config
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
ffmpeg \
|
| 6 |
libsndfile1 \
|
| 7 |
git \
|
| 8 |
build-essential \
|
| 9 |
+
pkg-config \
|
| 10 |
+
libavformat-dev \
|
| 11 |
+
libavcodec-dev \
|
| 12 |
+
libavdevice-dev \
|
| 13 |
+
libavutil-dev \
|
| 14 |
+
libavfilter-dev \
|
| 15 |
+
libswscale-dev \
|
| 16 |
+
libswresample-dev \
|
| 17 |
&& apt-get clean \
|
| 18 |
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
WORKDIR /app
|
| 21 |
|
|
|
|
| 22 |
COPY requirements.txt .
|
| 23 |
|
|
|
|
| 24 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 25 |
pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
|
| 26 |
pip install --no-cache-dir ctranslate2==3.24.0 && \
|
| 27 |
+
pip install --no-cache-dir av==10.0.0 && \
|
| 28 |
pip install --no-cache-dir faster-whisper==0.10.1 && \
|
| 29 |
pip install --no-cache-dir whisperx==3.1.1 && \
|
| 30 |
pip install --no-cache-dir pyannote.audio==3.1.1 && \
|
| 31 |
pip install --no-cache-dir gradio==4.26.0 huggingface_hub==0.21.4 && \
|
| 32 |
pip install --no-cache-dir pydantic numpy==1.26.4 soundfile librosa
|
| 33 |
|
|
|
|
| 34 |
COPY . .
|
| 35 |
|
|
|
|
| 36 |
EXPOSE 7860
|
| 37 |
|
| 38 |
+
CMD ["python", "app.py"]
|
|
|