Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -9,17 +9,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/* \
|
| 10 |
&& git lfs install
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
RUN
|
| 14 |
-
&& apt-get install -y nodejs \
|
| 15 |
-
&& rm -rf /var/lib/apt/lists/* && apt-get clean
|
| 16 |
|
| 17 |
-
#
|
| 18 |
COPY requirements.txt /tmp/requirements.txt
|
| 19 |
RUN pip install --no-cache-dir pip -U \
|
| 20 |
&& pip install --no-cache-dir -r /tmp/requirements.txt "gradio>=4.0.0,<5.0.0" uvicorn websockets spaces
|
| 21 |
|
| 22 |
-
# Copy application
|
| 23 |
-
COPY . /app
|
| 24 |
|
| 25 |
CMD ["python", "app.py"]
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/* \
|
| 10 |
&& git lfs install
|
| 11 |
|
| 12 |
+
# Pre-clone the RVC WebUI repository during 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" uvicorn websockets spaces
|
| 19 |
|
| 20 |
+
# Copy local application launcher
|
| 21 |
+
COPY app.py /app/app.py
|
| 22 |
|
| 23 |
CMD ["python", "app.py"]
|