From b0c55d540f2a3293282bc7bb6557acee10fa4378 Mon Sep 17 00:00:00 2001 From: Melinda Shore Date: Mon, 26 Jun 2017 17:17:16 -0800 Subject: [PATCH] Basic Dockerfile for stubby. --- src/tools/Dockerfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/tools/Dockerfile diff --git a/src/tools/Dockerfile b/src/tools/Dockerfile new file mode 100644 index 00000000..9ae731a3 --- /dev/null +++ b/src/tools/Dockerfile @@ -0,0 +1,42 @@ +FROM ubuntu:16.04 +MAINTAINER Melinda Shore + +RUN set -ex \ + && apt-get update \ + && apt-get install -y curl \ + && apt-get install -y git \ + && apt-get install -y wget \ + && apt-get install -y libssl-dev \ + && curl -fOSL "https://unbound.net/downloads/unbound-1.6.3.tar.gz" \ + && mkdir -p /usr/src/unbound \ + && tar -xzC /usr/src/unbound --strip-components=1 -f unbound-1.6.3.tar.gz \ + && rm unbound-1.6.3.tar.gz \ + && apt-get -y install libidn11-dev \ + && apt-get -y install python-dev \ + && apt-get -y install make \ + && apt-get install -y automake autoconf libtool \ + && apt-get install -y shtool \ + && cd /usr/src/unbound \ + && ./configure \ + && make \ + && make install \ + && ldconfig \ + && cd /usr/src \ + && git clone https://github.com/getdnsapi/getdns.git \ + && cd /usr/src/getdns \ + && git checkout release/1.1.1 \ + && git submodule update --init \ + && libtoolize -ci \ + && autoreconf -fi \ + && ./configure --enable-debug-daemon \ + && make \ + && make install \ + && ldconfig \ + && cp src/tools/stubby.conf /etc \ + && mkdir -p /etc/unbound \ + && cd /etc/unbound \ + && wget http://www.nomountain.net/getdns-root.key + +EXPOSE 53 + +CMD ["/usr/local/bin/stubby"]