ChuxiJ commited on
Commit
5a6536d
·
1 Parent(s): 288b94f

fix ffmpeg full install

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -10,13 +10,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
10
 
11
  # Install system dependencies
12
  # build-essential is required for triton to compile CUDA kernels
13
- # ffmpeg is required for torchaudio ffmpeg backend (audio loading/saving)
14
- RUN apt-get update && apt-get install -y --no-install-recommends \
15
- git \
16
- ffmpeg \
17
- libsndfile1 \
18
- build-essential \
19
- && rm -rf /var/lib/apt/lists/*
20
 
21
  # Set up a new user named "user" with user ID 1000 (HuggingFace Space requirement)
22
  RUN useradd -m -u 1000 user
 
10
 
11
  # Install system dependencies
12
  # build-essential is required for triton to compile CUDA kernels
13
+ # ffmpeg is installed WITHOUT --no-install-recommends to ensure all shared libraries
14
+ # (libavcodec, libavformat, libavutil, libswresample) are installed for torchaudio
15
+ RUN apt-get update && \
16
+ apt-get install -y --no-install-recommends git libsndfile1 build-essential && \
17
+ apt-get install -y ffmpeg && \
18
+ rm -rf /var/lib/apt/lists/*
 
19
 
20
  # Set up a new user named "user" with user ID 1000 (HuggingFace Space requirement)
21
  RUN useradd -m -u 1000 user