1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/btsync/Dockerfile
2016-05-01 09:06:20 +08:00

26 lines
624 B
Docker

#
# Dockerfile for btsync
#
FROM debian
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl \
&& curl -sSL https://download-cdn.getsync.com/stable/linux-x64/BitTorrent-Sync_x64.tar.gz | tar xz -C /usr/bin/ btsync \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
COPY config.json /etc/btsync/
ENV STORAGE_PATH /data/.syncsystem
ENV DIRECTORY_ROOT /data/syncaod
VOLUME /etc/btsync /data
EXPOSE 8888 55555
CMD set -xe \
&& mkdir -p "$STORAGE_PATH" "$DIRECTORY_ROOT" \
&& btsync --nodaemon --config /etc/btsync/config.json