-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (24 loc) · 1.05 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
FROM mumiehub/rclone-mount:latest
ENV GOPATH="/go" \
RCLONE_VERSION="v1.49.1" \
AccessFolder="/mnt" \
RemotePath="drive:" \
MountPoint="/mnt" \
ConfigDir="/config" \
ConfigName=".rclone.conf" \
MountCommands="--allow-other --allow-non-empty --dir-cache-time=1m --cache-chunk-size=10M --cache-workers=5 --fast-list --vfs-cache-mode full" \
UnmountCommands="-u -z"
## Alpine with Go Git
RUN apk add --no-cache --update alpine-sdk ca-certificates fuse fuse-dev wget \
&& wget https://github.com/rclone/rclone/releases/download/${RCLONE_VERSION}/rclone-${RCLONE_VERSION}-linux-amd64.zip -O /tmp/rclone.zip \
&& unzip -o -j /tmp/rclone.zip -d /usr/sbin \
&& apk del alpine-sdk wget \
&& rm -rf /tmp/* /var/cache/apk/* /var/lib/apk/lists/*
ADD start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/mnt"]
CMD ["/start.sh"]
# Use this docker Options in run
# --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined
# -v /path/to/config/.rclone.conf:/config/.rclone.conf
# -v /mnt/mediaefs:/mnt/mediaefs:shared