You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
826 B

  1. FROM alpine:3.9
  2. MAINTAINER Valentin Lab <valentin.lab@kalysto.org>
  3. RUN apk add bash rsync sudo openssh-client
  4. # RUN apt-get update && \
  5. # DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y --no-install-recommends rsync sudo openssh-client && \
  6. # apt-get clean && \
  7. # rm -rf /var/lib/apt/lists/*
  8. ## New user/group rsync/rsync with home dir in /var/lib/rsync
  9. RUN mkdir -p /var/lib/rsync && \
  10. addgroup -S rsync && \
  11. adduser -S rsync -h /var/lib/rsync -G rsync && \
  12. chown rsync:rsync /var/lib/rsync
  13. ## New user/group rsync/rsync with home dir in /var/lib/rsync
  14. # RUN mkdir -p /var/lib/rsync && \
  15. # groupadd -r rsync && \
  16. # useradd -r rsync -d /var/lib/rsync -g rsync && \
  17. # chown rsync:rsync /var/lib/rsync
  18. COPY ./entrypoint.sh /entrypoint.sh
  19. ENTRYPOINT [ "/entrypoint.sh" ]