-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (21 loc) · 831 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
FROM alpine:3.5
MAINTAINER Marek Novotny <[email protected]>
RUN adduser -D syncthing
ADD launch.sh /launch.sh
RUN chmod +x /launch.sh && \
apk add --no-cache --virtual libressl
ENV SYNCTHING_VERSION 0.14.24
RUN set -x \
&& tarball="syncthing-linux-arm-v${SYNCTHING_VERSION}.tar.gz" \
&& wget https://github.com/syncthing/syncthing/releases/download/v${SYNCTHING_VERSION}/${tarball} \
&& dir="$(basename "$tarball" .tar.gz)" \
&& bin="$dir/syncthing" \
&& tar -xvzf "$tarball" "$bin" \
&& rm "$tarball" \
&& mv "$bin" /usr/local/bin/syncthing \
&& rmdir "$dir"
WORKDIR /home/syncthing
VOLUME ["/home/syncthing/.config/syncthing", "/home/syncthing/Sync"]
EXPOSE 8384 22000 21027/udp
USER syncthing
CMD ["/launch.sh"]