jacky3102 commited on
Commit
5fe3ad9
·
verified ·
1 Parent(s): 4924ed5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -2,20 +2,21 @@ FROM python:3.12
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies including Rust
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 rustc cargo \
9
  && rm -rf /var/lib/apt/lists/* \
10
  && git lfs install
11
 
12
- # Copy application files
13
- COPY requirements.txt /app/requirements.txt
14
 
15
- # Install dependencies
 
16
  RUN pip install --no-cache-dir pip -U \
17
- && pip install --no-cache-dir -r /app/requirements.txt "gradio>=4.0.0,<5.0.0"
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"]