-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 798 Bytes
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 798 Bytes
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
ARG BASE=alpine:3.9
FROM ${BASE}
LABEL maintainer="Brian J. Cardiff <bcardiff@gmail.com>"
ARG RCLONE_VERSION=current
ARG ARCH=amd64
ENV SYNC_SRC=
ENV SYNC_DEST=
ENV SYNC_OPTS=-v
ENV RCLONE_OPTS="--config /config/rclone.conf"
ENV CRON=
ENV CRON_ABORT=
ENV FORCE_SYNC=
ENV CHECK_URL=
ENV TZ=
RUN apk -U add ca-certificates fuse wget dcron tzdata \
&& rm -rf /var/cache/apk/*
RUN URL=http://downloads.rclone.org/${RCLONE_VERSION}/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip ; \
URL=${URL/\/current/} ; \
cd /tmp \
&& wget -q $URL \
&& unzip /tmp/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip \
&& mv /tmp/rclone-*-linux-${ARCH}/rclone /usr/bin \
&& rm -r /tmp/rclone*
COPY entrypoint.sh /
COPY sync.sh /
COPY sync-abort.sh /
VOLUME ["/config"]
ENTRYPOINT ["/entrypoint.sh"]
CMD [""]