forked from bt-sync/sync-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (32 loc) · 996 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
# Resilio Sync
#
# VERSION 0.1
#
ARG VERSION=2.7.2
FROM ubuntu:bionic AS unpacker
ARG VERSION
ARG ARCH=x64
ADD https://download-cdn.resilio.com/${VERSION}/linux-${ARCH}/resilio-sync_x64.tar.gz /tmp/sync.tgz
RUN tar -xf /tmp/sync.tgz -C /usr/bin rslsync && rm -f /tmp/sync.tgz
FROM ubuntu:bionic
ARG VERSION
LABEL MAINTAINER="Resilio Inc. <[email protected]>" \
com.resilio.version="${VERSION}"
RUN apt-get update && \
apt-get install -y gosu=1.10-1 --no-install-recommends && \
apt-get clean && \
rm -rf /var/*/apt
COPY sync.conf.default /etc/
COPY run_sync /usr/bin/
COPY --from=unpacker /usr/bin/rslsync /usr/bin
# webui port
EXPOSE 8888/tcp
# listening port
EXPOSE 55555/tcp
# listening port
EXPOSE 55555/udp
# More info about ports used by Sync you can find here:
# https://help.resilio.com/hc/en-us/articles/204754759-What-ports-and-protocols-are-used-by-Sync-
VOLUME /mnt/sync
ENTRYPOINT ["run_sync"]
CMD ["--config", "/mnt/sync/sync.conf"]