Spaces:
Sleeping
Sleeping
husseinelsaadi Claude Opus 4.8 commited on
Commit ·
ef5d955
1
Parent(s): 41604f6
Dockerfile: add pkg-config + libav dev headers so PyAV (faster-whisper dep) builds
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -12,10 +12,14 @@ ENV OMP_NUM_THREADS=1 \
|
|
| 12 |
TRANSFORMERS_CACHE=/tmp/huggingface/transformers \
|
| 13 |
HUGGINGFACE_HUB_CACHE=/tmp/huggingface/hub
|
| 14 |
|
| 15 |
-
# System libraries:
|
| 16 |
-
#
|
|
|
|
|
|
|
| 17 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 18 |
-
ffmpeg git libsndfile1 build-essential \
|
|
|
|
|
|
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
# Install the CPU build of PyTorch first so the heavy CUDA wheel is never
|
|
|
|
| 12 |
TRANSFORMERS_CACHE=/tmp/huggingface/transformers \
|
| 13 |
HUGGINGFACE_HUB_CACHE=/tmp/huggingface/hub
|
| 14 |
|
| 15 |
+
# System libraries:
|
| 16 |
+
# ffmpeg / libsndfile1 - audio decode for whisper, soundfile, librosa
|
| 17 |
+
# git, build-essential - building source-only wheels
|
| 18 |
+
# pkg-config + libav*-dev - required to compile PyAV (a faster-whisper dep)
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 20 |
+
ffmpeg git libsndfile1 build-essential pkg-config \
|
| 21 |
+
libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
|
| 22 |
+
libavfilter-dev libswscale-dev libswresample-dev \
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
# Install the CPU build of PyTorch first so the heavy CUDA wheel is never
|