jacky3102 commited on
Commit
7a4867c
·
verified ·
1 Parent(s): 95f283d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Install Node.js
13
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
14
- && apt-get install -y nodejs \
15
- && rm -rf /var/lib/apt/lists/* && apt-get clean
16
 
17
- # Copy requirements and install Python dependencies
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 files
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"]