Update Dockerfile
Browse files- Dockerfile +8 -14
Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
# --------------------------------------------------
|
| 9 |
-
# SYSTEM DEPENDENCIES (
|
| 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
|
| 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 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 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
|