Skip to content

Commit d3bf70b

Browse files
authored
[SD] install rclone from upstream (fixes issue #751) (#757)
1 parent 3c81f6f commit d3bf70b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

stable_diffusion/Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@ ARG FROM_IMAGE_NAME=nvcr.io/nvidia/pytorch:24.01-py3
22
FROM ${FROM_IMAGE_NAME}
33

44
ENV DEBIAN_FRONTEND=noninteractive
5+
ENV RCLONE_VER=v1.67.0
56

67
# apt dependencies
78
RUN apt-get update
8-
RUN apt-get install -y ffmpeg libsm6 libxext6 rclone
9+
RUN apt-get install -y ffmpeg libsm6 libxext6
10+
11+
# Install rclone from upstream, see https://github.com/mlcommons/training/issues/751
12+
RUN wget https://github.com/rclone/rclone/releases/download/${RCLONE_VER}/rclone-${RCLONE_VER}-linux-amd64.zip \
13+
&& unzip rclone-${RCLONE_VER}-linux-amd64.zip \
14+
&& cd rclone-${RCLONE_VER}-linux-amd64 \
15+
&& cp rclone /usr/bin/ \
16+
&& chmod 755 /usr/bin/rclone \
17+
&& rm -rf /rclone-${RCLONE_VER}-linux-amd64* \
18+
&& rclone --version
919

1020
# Remove the opencv version shipped with the base image
1121
# https://github.com/opencv/opencv-python/issues/884

0 commit comments

Comments
 (0)