1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/rslsync/Dockerfile

26 lines
655 B
Docker
Raw Normal View History

2016-04-14 05:19:08 +02:00
#
2016-09-19 08:27:44 +02:00
# Dockerfile for rslsync
2016-04-14 05:19:08 +02:00
#
2016-09-19 08:27:44 +02:00
FROM debian:jessie
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-04-14 05:19:08 +02:00
RUN set -xe \
&& apt-get update \
2016-09-20 06:14:29 +02:00
&& apt-get install -y ca-certificates curl zip \
2016-09-19 08:27:44 +02:00
&& curl -sSL https://download-cdn.getsync.com/stable/linux-x64/resilio-sync_x64.tar.gz | tar xz -C /usr/bin/ rslsync \
2016-04-14 05:19:08 +02:00
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
2016-09-20 13:14:12 +02:00
ENV CONFIG_FILE /etc/rslsync.json
ENV STORAGE_PATH /data/system
ENV DIRECTORY_ROOT /data/user
2016-04-14 05:19:08 +02:00
2016-09-20 13:14:12 +02:00
COPY rslsync.json $CONFIG_FILE
2016-09-20 06:14:29 +02:00
VOLUME /data
2016-04-14 05:19:08 +02:00
EXPOSE 8888 55555
CMD set -xe \
&& mkdir -p "$STORAGE_PATH" "$DIRECTORY_ROOT" \
2016-09-20 06:14:29 +02:00
&& rslsync --nodaemon --config "$CONFIG_FILE"