Update Dockerfile
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
|
@@ -2,20 +2,21 @@ FROM python:3.12
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 curl \
|
| 8 |
-
build-essential pkg-config
|
| 9 |
&& rm -rf /var/lib/apt/lists/* \
|
| 10 |
&& git lfs install
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
|
| 15 |
-
# Install
|
|
|
|
| 16 |
RUN pip install --no-cache-dir pip -U \
|
| 17 |
-
&& pip install --no-cache-dir -r /
|
| 18 |
|
| 19 |
-
COPY .
|
| 20 |
|
| 21 |
CMD ["python", "app.py"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 curl \
|
| 8 |
+
build-essential pkg-config \
|
| 9 |
&& rm -rf /var/lib/apt/lists/* \
|
| 10 |
&& git lfs install
|
| 11 |
|
| 12 |
+
# Pre-clone the RVC repository directly during Docker image build
|
| 13 |
+
RUN git clone --depth 1 https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git /app/rvc
|
| 14 |
|
| 15 |
+
# Install Python requirements
|
| 16 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 17 |
RUN pip install --no-cache-dir pip -U \
|
| 18 |
+
&& pip install --no-cache-dir -r /tmp/requirements.txt "gradio>=4.0.0,<5.0.0"
|
| 19 |
|
| 20 |
+
COPY . /app
|
| 21 |
|
| 22 |
CMD ["python", "app.py"]
|