forked from bcardiff/docker-rclone
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDockerfile
50 lines (42 loc) · 993 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
ARG BASE=alpine:latest
FROM ${BASE}
LABEL maintainer="pfidr"
ARG RCLONE_VERSION=current
ARG ARCH=amd64
ENV SYNC_SRC=
ENV SYNC_DEST=
ENV SYNC_OPTS=-v
ENV SYNC_OPTS_EVAL=
ENV SYNC_ONCE=
ENV RCLONE_CMD=sync
ENV RCLONE_DIR_CMD=ls
ENV RCLONE_DIR_CMD_DEPTH=-1
ENV RCLONE_DIR_CHECK_SKIP=
ENV RCLONE_OPTS="--config /config/rclone.conf"
ENV OUTPUT_LOG=
ENV ROTATE_LOG=
ENV CRON=
ENV CRON_ABORT=
ENV FORCE_SYNC=
ENV CHECK_URL=
ENV FAIL_URL=
ENV HC_LOG=
ENV TZ=
ENV UID=
ENV GID=
ENV SUCCESS_CODES="0"
RUN apk --no-cache add ca-certificates fuse wget dcron tzdata
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"]
VOLUME ["/logs"]
ENTRYPOINT ["/entrypoint.sh"]
CMD [""]