Skip to content

Commit e274d23

Browse files
committed
switch Docker's uv to --system
1 parent f4e6071 commit e274d23

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

Dockerfile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
1616
RUN node --version
1717
RUN npm --version
1818

19-
ENV VIRTUAL_ENV=/venv
2019
# Install uv
2120
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
2221
RUN /install.sh && rm /install.sh
@@ -25,7 +24,7 @@ RUN /install.sh && rm /install.sh
2524
ENV TORCH_VERSION=2.3.1
2625

2726
ENV PATH="/root/.cargo/bin:$PATH"
28-
RUN uv pip install --no-cache-dir setuptools torch==$TORCH_VERSION torchvision torchaudio
27+
RUN uv pip install --no-cache-dir --system setuptools torch==$TORCH_VERSION torchvision torchaudio
2928

3029
# Set working directory
3130
WORKDIR /app
@@ -37,17 +36,17 @@ RUN git clone https://github.com/rsxdalv/tts-generation-webui.git
3736
WORKDIR /app/tts-generation-webui
3837

3938
# Install all requirements
40-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements.txt
41-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_bark_hubert_quantizer.txt
42-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_rvc.txt
43-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_audiocraft_0.txt
44-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_audiocraft.txt
45-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_styletts2.txt
46-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_vall_e.txt
47-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_maha_tts.txt
48-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_stable_audio.txt
49-
# RUN uv pip install --no-cache-dir torch==$TORCH_VERSION hydra-core==1.3.2
50-
RUN uv pip install --no-cache-dir torch==$TORCH_VERSION nvidia-ml-py
39+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements.txt
40+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_bark_hubert_quantizer.txt
41+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_rvc.txt
42+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_audiocraft_0.txt
43+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_audiocraft.txt
44+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_styletts2.txt
45+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_vall_e.txt
46+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_maha_tts.txt
47+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_stable_audio.txt
48+
# RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION hydra-core==1.3.2
49+
RUN uv pip install --no-cache-dir --system torch==$TORCH_VERSION nvidia-ml-py
5150

5251

5352
# add postgres & run setup

0 commit comments

Comments
 (0)