From 7928549e09175e51e47f298045b560cb045b09f0 Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:21:20 -0500 Subject: [PATCH] cuda now works on all steps --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index e37db13..e298183 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,19 +3,16 @@ FROM nvidia/cuda:12.5.0-runtime-ubuntu22.04 WORKDIR /app RUN apt update RUN apt install git python3-pip -y -RUN pip3 install torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2+cu117 --index-url https://download.pytorch.org/whl/cu117 - -WORKDIR /app - -COPY requirements.txt /app -RUN pip install --no-cache-dir -r requirements.txt RUN git clone https://github.com/rakuri255/UltraSinger.git WORKDIR /app/UltraSinger RUN cp -Rv * .. +WORKDIR /app RUN apt install ffmpeg curl -y -RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /app/yt-dlp -RUN chmod a+rx /app/yt-dlp +RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --upgrade pip +RUN pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121 +RUN pip3 install tensorflow[and-cuda]==2.16.1 ENV UID=0 ENV GID=0 ENV UMASK=022