Vishal Patil commited on
Update Dockerfile
Browse files- Dockerfile +13 -4
Dockerfile
CHANGED
|
@@ -1,12 +1,21 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
ffmpeg \
|
| 6 |
libsndfile1 \
|
| 7 |
git \
|
| 8 |
-
build-essential \
|
| 9 |
pkg-config \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
&& apt-get clean \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
@@ -14,10 +23,10 @@ WORKDIR /app
|
|
| 14 |
|
| 15 |
COPY requirements.txt .
|
| 16 |
|
| 17 |
-
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
|
|
|
| 18 |
pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
|
| 19 |
pip install --no-cache-dir ctranslate2==3.24.0 && \
|
| 20 |
-
pip install --no-cache-dir av==12.3.0 --only-binary=av && \
|
| 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 && \
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
ffmpeg \
|
| 5 |
libsndfile1 \
|
| 6 |
git \
|
|
|
|
| 7 |
pkg-config \
|
| 8 |
+
libavformat-dev \
|
| 9 |
+
libavcodec-dev \
|
| 10 |
+
libavdevice-dev \
|
| 11 |
+
libavutil-dev \
|
| 12 |
+
libavfilter-dev \
|
| 13 |
+
libswscale-dev \
|
| 14 |
+
libswresample-dev \
|
| 15 |
+
python3-dev \
|
| 16 |
+
gcc \
|
| 17 |
+
g++ \
|
| 18 |
+
cython3 \
|
| 19 |
&& apt-get clean \
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
|
|
|
| 23 |
|
| 24 |
COPY requirements.txt .
|
| 25 |
|
| 26 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools wheel cython && \
|
| 27 |
+
pip install --no-cache-dir av==12.3.0 && \
|
| 28 |
pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
|
| 29 |
pip install --no-cache-dir ctranslate2==3.24.0 && \
|
|
|
|
| 30 |
pip install --no-cache-dir faster-whisper==0.10.1 && \
|
| 31 |
pip install --no-cache-dir whisperx==3.1.1 && \
|
| 32 |
pip install --no-cache-dir pyannote.audio==3.1.1 && \
|