MA commited on
Commit
b696852
Β·
1 Parent(s): 7bcde8c

fix: dockerfile librairies

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -15,9 +15,15 @@ RUN pip install --no-cache-dir \
15
  torch torchaudio --index-url https://download.pytorch.org/whl/cpu
16
 
17
  # ── Python: audiocraft + flask ────────────────────────────────────────────────
18
- RUN pip install --no-cache-dir audiocraft flask
19
-
20
- # ── App code ──────────────────────────────────────────────────────────────────
 
 
 
 
 
 
21
  COPY app.py index.html ./
22
 
23
  # ── Model cache directory (matches the Render persistent disk mount path) ─────
 
15
  torch torchaudio --index-url https://download.pytorch.org/whl/cpu
16
 
17
  # ── Python: audiocraft + flask ────────────────────────────────────────────────
18
+ RUN apt-get update && apt-get install -y \
19
+ pkg-config \
20
+ libavformat-dev \
21
+ libavcodec-dev \
22
+ libswscale-dev \
23
+ && pip install --upgrade pip \
24
+ && pip install --no-cache-dir audiocraft flask
25
+
26
+ # ── App code ──────────────────────────────────────────────────────────────────
27
  COPY app.py index.html ./
28
 
29
  # ── Model cache directory (matches the Render persistent disk mount path) ─────