Merge pull request #6972 from duplicati/feature/use-more-recent-rclone-in-docker

Update rclone in Docker images
This commit is contained in:
Kenneth Skovhede
2026-06-19 16:24:33 +02:00
committed by GitHub
2 changed files with 48 additions and 2 deletions
+24 -1
View File
@@ -1,7 +1,30 @@
FROM debian:latest
ARG TARGETARCH
ARG TARGETVARIANT
RUN apt update -y && \
apt install -y libssl3t64 ca-certificates libicu76 libgssapi-krb5-2 rclone gnupg tini
apt install -y libssl3t64 ca-certificates libicu76 libgssapi-krb5-2 gnupg tini curl unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN case "${TARGETARCH}" in \
"amd64") RCLONE_ARCH="amd64" ;; \
"arm64") RCLONE_ARCH="arm64" ;; \
"arm") \
case "${TARGETVARIANT}" in \
"v6") RCLONE_ARCH="arm-v6" ;; \
"v7") RCLONE_ARCH="arm-v7" ;; \
*) RCLONE_ARCH="arm" ;; \
esac ;; \
"386") RCLONE_ARCH="386" ;; \
*) RCLONE_ARCH="${TARGETARCH}" ;; \
esac && \
curl -fsSL "https://downloads.rclone.org/rclone-current-linux-${RCLONE_ARCH}.zip" -o /tmp/rclone.zip && \
unzip -q /tmp/rclone.zip -d /tmp && \
cp /tmp/rclone-*/rclone /usr/bin/rclone && \
chmod +x /usr/bin/rclone && \
rm -rf /tmp/rclone*
ENTRYPOINT [ "/usr/bin/tini", "--", "/run-as-user.sh" ]
@@ -1,7 +1,30 @@
FROM debian:latest
ARG TARGETARCH
ARG TARGETVARIANT
RUN apt update -y && \
apt install -y libssl3t64 ca-certificates libicu76 rclone gnupg tini
apt install -y libssl3t64 ca-certificates libicu76 gnupg tini curl unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN case "${TARGETARCH}" in \
"amd64") RCLONE_ARCH="amd64" ;; \
"arm64") RCLONE_ARCH="arm64" ;; \
"arm") \
case "${TARGETVARIANT}" in \
"v6") RCLONE_ARCH="arm-v6" ;; \
"v7") RCLONE_ARCH="arm-v7" ;; \
*) RCLONE_ARCH="arm" ;; \
esac ;; \
"386") RCLONE_ARCH="386" ;; \
*) RCLONE_ARCH="${TARGETARCH}" ;; \
esac && \
curl -fsSL "https://downloads.rclone.org/rclone-current-linux-${RCLONE_ARCH}.zip" -o /tmp/rclone.zip && \
unzip -q /tmp/rclone.zip -d /tmp && \
cp /tmp/rclone-*/rclone /usr/bin/rclone && \
chmod +x /usr/bin/rclone && \
rm -rf /tmp/rclone*
ENTRYPOINT [ "/usr/bin/tini", "--", "/run-as-user.sh" ]