diff --git a/dnscrypt/Dockerfile b/dnscrypt/Dockerfile index 6f19dcf..0a379dd 100644 --- a/dnscrypt/Dockerfile +++ b/dnscrypt/Dockerfile @@ -1,15 +1,20 @@ +# +# Dockerfile for dnscrypt +# + FROM ubuntu:14.04 -MAINTAINER kev +MAINTAINER kev RUN apt-get update RUN apt-get install -y build-essential supervisor dnsmasq +RUN apt-get clean ADD ./services.conf /etc/supervisor/conf.d/ ADD ./dnsmasq.conf /etc/ -ADD https://download.libsodium.org/libsodium/releases/libsodium-1.0.2.tar.gz /tmp/ -ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz /tmp/ +ADD https://download.libsodium.org/libsodium/releases/libsodium-1.0.2.tar.gz /tmp/pkgs/ +ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz /tmp/pkgs/ -WORKDIR /tmp +WORKDIR /tmp/pkgs/ RUN tar xzf libsodium-1.0.2.tar.gz && \ cd libsodium-1.0.2 && \ @@ -25,4 +30,8 @@ RUN tar xzf dnscrypt-proxy-1.4.3.tar.gz && \ make && \ make install +WORKDIR / + +RUN rm -r /tmp/pkgs/ + CMD supervisor -n -c /etc/supervisor/supervisord.conf