-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 887 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
FROM alpine:latest
ARG TARGETOS \
TARGETARCH
ENV XDG_CONFIG_HOME=/config \
XDG_CACHE_HOME=/config/cache
COPY versions.sh /usr/local/bin/versions
RUN apk add -U --no-cache \
tzdata \
tree \
openssh-client-default \
ca-certificates \
rsync \
rclone \
restic \
fuse \
iperf3 \
&& update-ca-certificates \
&& rclone selfupdate \
&& restic self-update \
&& mkdir -p $XDG_CONFIG_HOME $XDG_CACHE_HOME \
&& echo "user_allow_other" >> /etc/fuse.conf \
&& ln -s /usr/local/bin/versions /usr/local/bin/version \
&& chmod u+x /usr/local/bin/version* \
&& rm -rf /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
# RUN addgroup -g 1009 rclone && adduser -u 1009 -Ds /bin/sh -G rclone rclone
CMD ["sh", "-l"]
WORKDIR /data