Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. FROM debian:stable
  2. MAINTAINER Paul Tagliamonte <paultag@debian.org>
  3.  
  4. RUN apt-get update && apt-get install -y \
  5. adduser \
  6. git \
  7. rsync
  8.  
  9. RUN adduser \
  10. --system \
  11. --home=/opt/ftp-master.debian.org/archvsync/ \
  12. --shell=/bin/bash \
  13. --no-create-home \
  14. --group \
  15. archvsync
  16.  
  17. RUN mkdir -p /opt/ftp-master.debian.org/
  18. WORKDIR /opt/ftp-master.debian.org/
  19. RUN git clone https://ftp-master.debian.org/git/archvsync.git/
  20. RUN chown -R archvsync:archvsync ./archvsync
  21. WORKDIR /opt/ftp-master.debian.org/archvsync/
  22.  
  23. ENV PATH /opt/ftp-master.debian.org/archvsync/bin:${PATH}
  24.  
  25. CMD ["ftpsync"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement