-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
34 lines (25 loc) · 877 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
# Syncthing server
#
# http://syncthing.net
# https://github.com/calmh/syncthing
FROM debian:jessie
MAINTAINER Nicolas Cadou <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget && \
apt-get clean
ENV VERSION v0.8.11
ENV RELEASE syncthing-linux-amd64-v0.8.11
# Using wget because an ADD step with a URL isn't cached by docker build.
RUN wget -O /$RELEASE.tar.gz \
https://github.com/calmh/syncthing/releases/download/$VERSION/$RELEASE.tar.gz
RUN tar zxf /$RELEASE.tar.gz -C /usr/local && \
ln -s /usr/local/$RELEASE/syncthing /usr/local/bin && \
rm /$RELEASE.tar.gz
# TODO: validate GPG signature
ADD init /usr/local/bin/
RUN useradd -m syncthing
EXPOSE 8080 22000 21025/udp
VOLUME ["/home/syncthing/.config/syncthing", "/home/syncthing/Sync"]
CMD ["/usr/local/bin/init"]