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"]