basyx commited on
Commit
0c7ce2c
·
verified ·
1 Parent(s): bf53072

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -11,29 +11,24 @@ RUN apt-get update && apt-get install -y \
11
  git \
12
  curl \
13
  libsndfile1 \
14
- pkg-config \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  # ------------------------------------------------
18
- # PYTHON SETUP
19
  # ------------------------------------------------
20
  COPY requirements.txt .
21
 
22
  RUN pip install --upgrade pip setuptools wheel
23
 
24
- # Install CPU torch first
25
  RUN pip install torch torchaudio \
26
  --index-url https://download.pytorch.org/whl/cpu
27
 
28
- # Install PyAV binary wheel ONLY
29
- RUN pip install av --prefer-binary
30
-
31
- # App dependencies
32
  RUN pip install --no-cache-dir -r requirements.txt
33
 
34
- # Install audiocraft LAST
35
- RUN pip install --no-cache-dir \
36
- git+https://github.com/facebookresearch/audiocraft.git
37
 
38
  COPY . .
39
 
 
11
  git \
12
  curl \
13
  libsndfile1 \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # ------------------------------------------------
17
+ # PYTHON
18
  # ------------------------------------------------
19
  COPY requirements.txt .
20
 
21
  RUN pip install --upgrade pip setuptools wheel
22
 
23
+ # Torch CPU build (HF safe)
24
  RUN pip install torch torchaudio \
25
  --index-url https://download.pytorch.org/whl/cpu
26
 
27
+ # Install app requirements FIRST
 
 
 
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
+ # Install audiocraft WITHOUT dependencies
31
+ RUN pip install --no-deps git+https://github.com/facebookresearch/audiocraft.git
 
32
 
33
  COPY . .
34