summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile25
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"]