1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/rslsync/Dockerfile
2016-09-20 19:14:12 +08:00

26 lines
656 B
Docker

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