basyx commited on
Commit
fb2e90c
·
verified ·
1 Parent(s): 8bc9bce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -5
Dockerfile CHANGED
@@ -5,26 +5,39 @@ ENV PYTHONDONTWRITEBYTECODE=1
5
 
6
  WORKDIR /app
7
 
 
 
 
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  ffmpeg \
11
- libsndfile1 \
12
  build-essential \
13
  curl \
 
 
 
 
 
 
 
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
 
 
16
  COPY requirements.txt .
17
 
18
  RUN pip install --upgrade pip setuptools wheel
19
 
20
- RUN pip install --no-cache-dir \
21
- torch \
22
- torchaudio \
23
  --index-url https://download.pytorch.org/whl/cpu
24
 
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
- # Install MusicGen safely
28
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
29
 
30
  COPY . .
 
5
 
6
  WORKDIR /app
7
 
8
+ # --------------------------------------------------
9
+ # SYSTEM DEPENDENCIES REQUIRED BY PYAV
10
+ # --------------------------------------------------
11
  RUN apt-get update && apt-get install -y \
12
  git \
13
  ffmpeg \
14
+ pkg-config \
15
  build-essential \
16
  curl \
17
+ libsndfile1 \
18
+ libavcodec-dev \
19
+ libavformat-dev \
20
+ libavdevice-dev \
21
+ libavutil-dev \
22
+ libavfilter-dev \
23
+ libswscale-dev \
24
+ libswresample-dev \
25
  && rm -rf /var/lib/apt/lists/*
26
 
27
+ # --------------------------------------------------
28
+ # PYTHON
29
+ # --------------------------------------------------
30
  COPY requirements.txt .
31
 
32
  RUN pip install --upgrade pip setuptools wheel
33
 
34
+ # CPU torch (HF safe)
35
+ RUN pip install torch torchaudio \
 
36
  --index-url https://download.pytorch.org/whl/cpu
37
 
38
  RUN pip install --no-cache-dir -r requirements.txt
39
 
40
+ # Install Audiocraft AFTER system libs exist
41
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
42
 
43
  COPY . .