Skip to content

Commit

Permalink
[SD] install rclone from upstream (fixes issue #751) (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadki authored Aug 2, 2024
1 parent 3c81f6f commit d3bf70b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion stable_diffusion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3bf70b

Please sign in to comment.