File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,21 @@ RUN apk add --no-cache \
3939 fuse3 \
4040 curl \
4141 su-exec \
42- unzip
43-
44- RUN curl -Lso /tmp/rclone.zip "https://github.com/rclone/rclone/releases/download/v${VERSION}/rclone-v${VERSION}-linux-amd64.zip" && \
45- unzip /tmp/rclone.zip "rclone-v${VERSION}-linux-amd64/rclone" -d /tmp && \
46- install -m 0755 /tmp/rclone-v${VERSION}-linux-amd64/rclone /usr/local/bin/rclone && \
47- rm -rf /tmp/rclone*
42+ unzip
43+
44+ ARG TARGETARCH=amd64
45+ ENV ARCH_SUFFIX=${TARGETARCH}
46+
47+ RUN \
48+ case "${TARGETPLATFORM}" in \
49+ 'linux/amd64' ) export ARCH='amd64' ;; \
50+ 'linux/arm64' ) export ARCH='arm64' ;; \
51+ *) echo "Unsupported TARGETPLATFORM: ${TARGETPLATFORM}" && exit 1 ;; \
52+ esac \
53+ && curl -fsSL "https://github.com/rclone/rclone/releases/download/v${VERSION}/rclone-v${VERSION}-linux-${ARCH}.zip" -o /tmp/rclone.zip \
54+ && unzip /tmp/rclone.zip "rclone-v${VERSION}-linux-${ARCH}/rclone" -d /tmp \
55+ && install -m 0755 /tmp/rclone-v${VERSION}-linux-${ARCH}/rclone /usr/local/bin/rclone \
56+ && rm -rf /tmp/rclone*
4857
4958RUN mkdir -p /data
5059
You can’t perform that action at this time.
0 commit comments