From 79e48ec658b6a3cec3f5b1b5b37a011b62276f7e Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Fri, 14 Nov 2014 18:34:05 -0500 Subject: Add a Dockerfile This will help new hackers or people interested in creating a mirror going with running the process under Docker. --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile 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 + +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"] -- cgit v1.2.3