Skip to content

Commit

Permalink
Install rclone as Alpine package
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 15, 2021
1 parent b2afc34 commit 099d384
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ RUN apk add --update --no-cache \

# Prepare dirs for export.
RUN mkdir -p /out/usr/local/bin/ \
/out/usr/share/licenses/restic/ \
/out/usr/share/licenses/rclone/

# Download and build rclone.
RUN GO111MODULE=on go get -v github.com/rclone/rclone \
&& cp /go/bin/rclone /out/usr/local/bin/rclone \
&& curl -fL -o /out/usr/share/licenses/rclone/COPYING \
https://raw.githubusercontent.com/rclone/rclone/master/COPYING
/out/usr/share/licenses/restic/

# Download restic.
RUN curl -fL -o /tmp/restic.tar.gz \
Expand Down Expand Up @@ -56,10 +49,11 @@ RUN apk update \
ca-certificates \
fuse \
openssh \
rclone \
&& update-ca-certificates \
&& rm -rf /var/cache/apk/*

# Install restic and rclone.
# Install restic.
COPY --from=dist /out/ /

# Prepare default restic env vars.
Expand Down

0 comments on commit 099d384

Please sign in to comment.