This is a docker build for Resilio Sync (rslsync
).
. ├── Dockerfile └── rootfs ├── etc │ └── rslsync.conf.default └── usr └── local └── bin └── run_rslsync
FROM debian:stable-slim ARG ARCHITECTURE=x64 ENV ARCHITECTURE=$ARCHITECTURE ADD https://download-cdn.resilio.com/stable/linux/${ARCHITECTURE}/0/resilio-sync_${ARCHITECTURE}.tar.gz /tmp/resilio.tar.gz WORKDIR /tmp RUN tar -xvf /tmp/resilio.tar.gz -C /usr/local/bin/ ADD rootfs / EXPOSE 8888 CMD ["--config", "/sync/rslsync.conf"] ENTRYPOINT ["/usr/local/bin/run_rslsync"]
Here are the files that are placed under the rootfs
filesystem path.
{ "webui" : { "listen" : "0.0.0.0:8888" } }
#!/bin/sh mkdir -p /sync if ! [ -f /sync/rslsync.conf ]; then cp /etc/rslsync.conf.default /sync/rslsync.conf fi exec /usr/local/bin/rslsync --storage /sync --nodaemon $*