basyx commited on
Commit
d790a33
·
verified ·
1 Parent(s): 116587a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -14
Dockerfile CHANGED
@@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
6
  WORKDIR /app
7
 
8
  # --------------------------------------------------
9
- # SYSTEM DEPENDENCIES (NO PyAV BUILD TRIGGERS)
10
  # --------------------------------------------------
11
  RUN apt-get update && apt-get install -y \
12
  git \
@@ -17,29 +17,23 @@ RUN apt-get update && apt-get install -y \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # --------------------------------------------------
20
- # PYTHON BASE
21
  # --------------------------------------------------
22
  COPY requirements.txt .
23
 
24
  RUN pip install --upgrade pip setuptools wheel
25
 
26
- # Install Torch FIRST (stable CPU build)
27
  RUN pip install --no-cache-dir \
28
  torch \
29
  torchaudio \
30
  --index-url https://download.pytorch.org/whl/cpu
31
 
32
- # Install ONLY safe deps (prevents av build trigger)
33
- RUN pip install --no-cache-dir \
34
- transformers \
35
- flask \
36
- soundfile \
37
- numpy \
38
- scipy \
39
- pydub
40
-
41
- # Install Audiocraft LAST (controlled install)
42
- RUN pip install --no-cache-dir audiocraft==1.3.0
43
 
44
  # --------------------------------------------------
45
  # APP
 
6
  WORKDIR /app
7
 
8
  # --------------------------------------------------
9
+ # SYSTEM DEPENDENCIES (SAFE MINIMAL SET)
10
  # --------------------------------------------------
11
  RUN apt-get update && apt-get install -y \
12
  git \
 
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # --------------------------------------------------
20
+ # PYTHON CORE
21
  # --------------------------------------------------
22
  COPY requirements.txt .
23
 
24
  RUN pip install --upgrade pip setuptools wheel
25
 
 
26
  RUN pip install --no-cache-dir \
27
  torch \
28
  torchaudio \
29
  --index-url https://download.pytorch.org/whl/cpu
30
 
31
+ RUN pip install --no-cache-dir -r requirements.txt
32
+
33
+ # --------------------------------------------------
34
+ # INSTALL MUSICGEN WITHOUT PYAV TRIGGER
35
+ # --------------------------------------------------
36
+ RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
 
 
 
 
 
37
 
38
  # --------------------------------------------------
39
  # APP