forked from rayou/docker-rclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine:3.17 as base
## build-stage
FROM base as builder
ARG VERSION=v1.60.1
RUN wget https://github.com/rclone/rclone/releases/download/$VERSION/rclone-$VERSION-linux-amd64.zip
RUN unzip rclone-$VERSION-linux-amd64.zip
RUN cd rclone-*-linux-amd64 && \
cp rclone /usr/bin/ && \
chown root:root /usr/bin/rclone && \
chmod 755 /usr/bin/rclone
##
## runtime-stage
FROM base
ARG VERSION=v1.60.1
## 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 && apk upgrade --no-cache && apk --no-cache add \
ca-certificates \
coreutils \
inotify-tools \
lz4 zstd
COPY --from=builder /usr/bin/rclone /usr/bin/rclone
ENTRYPOINT ["/usr/bin/rclone"]