From d3bf70b46c88241646a74e0c8ff0d73751dd5aed Mon Sep 17 00:00:00 2001 From: Ahmad Kiswani Date: Fri, 2 Aug 2024 18:53:14 +0300 Subject: [PATCH] [SD] install rclone from upstream (fixes issue #751) (#757) --- stable_diffusion/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stable_diffusion/Dockerfile b/stable_diffusion/Dockerfile index 54c559844..138998931 100644 --- a/stable_diffusion/Dockerfile +++ b/stable_diffusion/Dockerfile @@ -2,10 +2,20 @@ ARG FROM_IMAGE_NAME=nvcr.io/nvidia/pytorch:24.01-py3 FROM ${FROM_IMAGE_NAME} ENV DEBIAN_FRONTEND=noninteractive +ENV RCLONE_VER=v1.67.0 # apt dependencies RUN apt-get update -RUN apt-get install -y ffmpeg libsm6 libxext6 rclone +RUN apt-get install -y ffmpeg libsm6 libxext6 + +# Install rclone from upstream, see https://github.com/mlcommons/training/issues/751 +RUN wget https://github.com/rclone/rclone/releases/download/${RCLONE_VER}/rclone-${RCLONE_VER}-linux-amd64.zip \ + && unzip rclone-${RCLONE_VER}-linux-amd64.zip \ + && cd rclone-${RCLONE_VER}-linux-amd64 \ + && cp rclone /usr/bin/ \ + && chmod 755 /usr/bin/rclone \ + && rm -rf /rclone-${RCLONE_VER}-linux-amd64* \ + && rclone --version # Remove the opencv version shipped with the base image # https://github.com/opencv/opencv-python/issues/884