Spaces:
Build error
Build error
MA commited on
Commit Β·
6184230
1
Parent(s): b696852
fix: dockerfile second fix
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
|
@@ -7,6 +7,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 7 |
git \
|
| 8 |
ffmpeg \
|
| 9 |
build-essential \
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# ββ Python: torch first (CPU build, works on Render's free/standard tier) βββββ
|
|
@@ -15,15 +19,10 @@ 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 |
-
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 |
-
|
| 27 |
COPY app.py index.html ./
|
| 28 |
|
| 29 |
# ββ Model cache directory (matches the Render persistent disk mount path) βββββ
|
|
|
|
| 7 |
git \
|
| 8 |
ffmpeg \
|
| 9 |
build-essential \
|
| 10 |
+
pkg-config \
|
| 11 |
+
libavformat-dev \
|
| 12 |
+
libavcodec-dev \
|
| 13 |
+
libswscale-dev \
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
| 16 |
# ββ Python: torch first (CPU build, works on Render's free/standard tier) βββββ
|
|
|
|
| 19 |
torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 20 |
|
| 21 |
# ββ Python: audiocraft + flask ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 22 |
+
RUN pip install --upgrade pip \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
&& pip install --no-cache-dir audiocraft flask
|
| 24 |
|
| 25 |
+
# ββ App code ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 26 |
COPY app.py index.html ./
|
| 27 |
|
| 28 |
# ββ Model cache directory (matches the Render persistent disk mount path) βββββ
|