# # Dockerfile for rslsync # FROM debian:jessie MAINTAINER kev 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.conf ENV STORAGE_PATH /data/.syncsystem ENV DIRECTORY_ROOT /data/syncaod COPY rslsync.conf $CONFIG_FILE VOLUME /data EXPOSE 8888 55555 CMD set -xe \ && mkdir -p "$STORAGE_PATH" "$DIRECTORY_ROOT" \ && rslsync --nodaemon --config "$CONFIG_FILE"