diff options
author | Paul Tagliamonte <tag@pault.ag> | 2014-11-14 18:34:05 -0500 |
---|---|---|
committer | Paul Tagliamonte <tag@pault.ag> | 2014-11-14 18:34:12 -0500 |
commit | 79e48ec658b6a3cec3f5b1b5b37a011b62276f7e (patch) | |
tree | 549cc809e57e0f491801c04734df36a36df49ef1 | |
parent | 9fc6b7b07ec385dc6f50ab5caecf4be8bf5df76a (diff) |
Add a Dockerfile
This will help new hackers or people interested in creating a mirror
going with running the process under Docker.
-rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..11740f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM debian:stable +MAINTAINER Paul Tagliamonte <paultag@debian.org> + +RUN apt-get update && apt-get install -y \ + adduser \ + git \ + rsync + +RUN adduser \ + --system \ + --home=/opt/ftp-master.debian.org/archvsync/ \ + --shell=/bin/bash \ + --no-create-home \ + --group \ + archvsync + +RUN mkdir -p /opt/ftp-master.debian.org/ +WORKDIR /opt/ftp-master.debian.org/ +RUN git clone https://ftp-master.debian.org/git/archvsync.git/ +RUN chown -R archvsync:archvsync ./archvsync +WORKDIR /opt/ftp-master.debian.org/archvsync/ + +ENV PATH /opt/ftp-master.debian.org/archvsync/bin:${PATH} + +CMD ["ftpsync"] |