Skip to content

Commit

Permalink
Merge pull request #3 from travelping/maintenance/upgrade-rclone-base…
Browse files Browse the repository at this point in the history
…image

Upgrade rclone and base image
  • Loading branch information
hsychla authored Jan 28, 2020
2 parents 1de2c4e + b06dc9c commit 99b7a19
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM alpine:3.10 as base
FROM alpine:3.11.3 as base

## build-stage

FROM base as builder
ARG VERSION=v1.49.1
ARG VERSION=v1.50.2

RUN wget https://github.com/ncw/rclone/releases/download/$VERSION/rclone-$VERSION-linux-amd64.zip
RUN unzip rclone-$VERSION-linux-amd64.zip
Expand All @@ -10,9 +12,26 @@ RUN cd rclone-*-linux-amd64 && \
chown root:root /usr/bin/rclone && \
chmod 755 /usr/bin/rclone

##
## runtime-stage

FROM base

RUN apk --update --no-cache add ca-certificates inotify-tools lz4 zstd
ARG VERSION=v1.50.2

## https://github.com/opencontainers/image-spec/releases/tag/v1.0.1
LABEL org.opencontainers.image.url="https://github.com/travelping/docker-rclone"
LABEL org.opencontainers.image.source="https://github.com/travelping/docker-rclone"
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.vendor="Travelping GmbH"
LABEL org.opencontainers.image.title="rclone-$VERSION"
LABEL org.opencontainers.image.description="rclone - rsync for cloud storage"

RUN apk --update --no-cache add \
ca-certificates \
coreutils \
inotify-tools \
lz4 zstd
COPY --from=builder /usr/bin/rclone /usr/bin/rclone

ENTRYPOINT ["/usr/bin/rclone"]

0 comments on commit 99b7a19

Please sign in to comment.