Updated rsync-server

This commit is contained in:
2026-08-21 13:56:06 +02:00
parent 8e1dee24d4
commit c9892bfd81
6 changed files with 85 additions and 62 deletions
+14 -5
View File
@@ -1,8 +1,17 @@
FROM alpine:latest
FROM debian:stable-slim
ADD rsync-server.sh /usr/bin/rsync-server.sh
RUN apt update && apt update && apt install rsync -y \
&& touch /etc/rsyncd.secrets \
&& chmod 600 /etc/rsyncd.secrets
RUN apk add --no-cache bash rsync \
&& chmod +x /usr/bin/rsync-server.sh
VOLUME ["/shares"]
CMD /usr/bin/rsync-server.sh
EXPOSE 873
COPY rsyncd.conf /etc/rsyncd.conf
COPY scripts/ /scripts/
HEALTHCHECK CMD ["/scripts/docker-healthcheck.sh"]
ENTRYPOINT ["/scripts/docker-entrypoint.sh"]
CMD [ "rsync", "--no-detach", "--daemon", "--config", "/etc/rsyncd.conf" ]