From b41dcbb2396c92c7f64556fd9b91feb84216025e Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Fri, 10 Oct 2014 12:34:02 +0100 Subject: [PATCH] add Dockerfile from https://yunohost.org/#/docker --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..40e2c49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM debian:wheezy +MAINTAINER kload "kload@kload.fr" + +RUN rm /usr/sbin/policy-rc.d +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get update +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install apt-utils -qq -y --force-yes +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install git -qq -y --force-yes +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install bind9 -qq -y --force-yes +RUN rm /var/lib/dpkg/info/bind9* +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -f +ADD . /tmp/install_script + +RUN cd /tmp/install_script && LC_ALL=C DEBIAN_FRONTEND=noninteractive ./autoinstall_yunohostv2 test || : +RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install ssh -qq -y --force-yes +RUN rm -rf /var/lib/apt/lists/* +RUN apt-get clean + +RUN service slapd start && yunohost tools postinstall -d mydomain.com -p changeme + +EXPOSE 22 25 53/udp 443 465 993 5222 5269 5290 +CMD /sbin/init