ranar110 commited on
Commit
728c5f3
·
1 Parent(s): 12f1091

Fix: Add missing system dependencies (libsndfile1, ffmpeg) for audio processing

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -16,6 +16,16 @@ WORKDIR $HOME/app
16
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
17
  COPY --chown=user . $HOME/app
18
 
 
 
 
 
 
 
 
 
 
 
19
  # Install requirements
20
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
21
 
 
16
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
17
  COPY --chown=user . $HOME/app
18
 
19
+ # Install system dependencies for audio processing (librosa, etc.)
20
+ USER root
21
+ RUN apt-get update && apt-get install -y \
22
+ libsndfile1 \
23
+ ffmpeg \
24
+ && rm -rf /var/lib/apt/lists/*
25
+
26
+ # Switch back to the "user" user
27
+ USER user
28
+
29
  # Install requirements
30
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
31