From d08b87b077c828d914a3d84add95532730f8390e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz> Date: Fri, 2 Jan 2015 15:26:32 +0100 Subject: [PATCH] docker: added Dockerfile --- scripts/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scripts/Dockerfile diff --git a/scripts/Dockerfile b/scripts/Dockerfile new file mode 100644 index 000000000..43d4d6761 --- /dev/null +++ b/scripts/Dockerfile @@ -0,0 +1,27 @@ +FROM cznic/knot:latest +MAINTAINER Marek Vavrusa <marek.vavrusa@nic.cz> + +# Install libuv +RUN mkdir /src; \ +git clone https://github.com/libuv/libuv.git /src/libuv; \ +cd /src/libuv; \ +sh autogen.sh && ./configure && make && make install && ldconfig; \ +rm -rf /src/libuv + +# Install knot-resolver +RUN apt-get -q -y update; \ +apt-get install -q -y \ +libcmocka-dev; \ +git clone https://gitlab.labs.nic.cz/knot/resolver.git /src/knot-resolver; \ +cd /src/knot-resolver; \ +autoreconf -if && ./configure && make && make check && make install && ldconfig; \ +# Trim down the image +apt-get clean; \ +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /src/knot-resolver + +# Select entrypoint +WORKDIR /root +CMD ["/usr/local/sbin/kresolved", "-a", "0.0.0.0#53"] + +# Expose port +EXPOSE 53 -- GitLab