From 6c8a9701cbe3b847274cb43bc963b8ff7bc90ec4 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Sat, 31 Dec 2016 17:59:49 +0800 Subject: [PATCH] Dockerfile for ftpsync --- dockerfiles/ftpsync/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dockerfiles/ftpsync/Dockerfile diff --git a/dockerfiles/ftpsync/Dockerfile b/dockerfiles/ftpsync/Dockerfile new file mode 100644 index 0000000..73055fd --- /dev/null +++ b/dockerfiles/ftpsync/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:jessie +MAINTAINER Justin Wong + +RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free" > /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list + +RUN apt-get update && \ + apt-get install -y git rsync && \ + apt-get install -y -t jessie-backports stunnel4 socat && \ + apt-get clean all + +RUN git clone https://ftp-master.debian.org/git/archvsync.git/ /ftpsync/ +WORKDIR /ftpsync/ +ENV PATH /ftpsync/bin:${PATH} +CMD /bin/bash +