Spaces:
Build error
Build error
MA commited on
Commit Β·
b696852
1
Parent(s): 7bcde8c
fix: dockerfile librairies
Browse files- 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
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) βββββ
|