gere commited on
Commit
34dc24c
·
verified ·
1 Parent(s): 33cd862

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -19,11 +19,16 @@ WORKDIR /app
19
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
20
  RUN pip install --no-cache-dir torch torchvision torchaudio
21
 
 
 
 
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  RUN python -m spacy download en_core_web_sm
26
- RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
 
 
27
 
28
  COPY . .
29
 
 
19
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
20
  RUN pip install --no-cache-dir torch torchvision torchaudio
21
 
22
+ # Install the correct binary version of av before audiocraft
23
+ RUN pip install --no-cache-dir av
24
+
25
  COPY requirements.txt .
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
  RUN python -m spacy download en_core_web_sm
29
+
30
+ # Install audiocraft WITHOUT dependencies to avoid the 'av' build error
31
+ RUN pip install --no-cache-dir --no-deps git+https://github.com/facebookresearch/audiocraft.git
32
 
33
  COPY . .
34