2015-03-02 05:51:23 +02:00
|
|
|
#
|
2015-05-30 15:21:24 +02:00
|
|
|
# Dockerfile for dnscrypt-proxy
|
2015-03-02 05:51:23 +02:00
|
|
|
#
|
|
|
|
|
2015-05-30 15:21:24 +02:00
|
|
|
FROM debian:jessie
|
2015-03-02 05:51:23 +02:00
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
2015-03-02 05:26:21 +02:00
|
|
|
|
2016-04-05 07:28:48 +02:00
|
|
|
ENV LIBSODIUM_VERSION 1.0.10
|
2016-02-03 16:27:51 +02:00
|
|
|
ENV DNSCRYPT_VERSION 1.6.1
|
2015-06-12 12:02:11 +02:00
|
|
|
ENV LISTEN_ADDR 0.0.0.0:53
|
|
|
|
ENV RESOLVER_ADDR 208.67.220.220:443
|
|
|
|
ENV PROVIDER_NAME 2.dnscrypt-cert.opendns.com
|
|
|
|
ENV PROVIDER_KEY B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79
|
|
|
|
|
2016-02-25 03:49:26 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
2016-04-13 10:15:20 +02:00
|
|
|
&& apt-get install -y ca-certificates \
|
|
|
|
build-essential \
|
|
|
|
curl \
|
2015-05-30 15:21:24 +02:00
|
|
|
&& mkdir libsodium \
|
2015-05-30 15:27:11 +02:00
|
|
|
&& cd libsodium \
|
2015-07-16 19:01:07 +02:00
|
|
|
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 \
|
2015-06-12 12:12:42 +02:00
|
|
|
&& ./configure --prefix=/usr --enable-minimal \
|
2015-05-30 15:21:24 +02:00
|
|
|
&& make install \
|
|
|
|
&& ldconfig \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf libsodium \
|
|
|
|
&& mkdir dnscrypt-proxy \
|
2015-05-30 15:27:11 +02:00
|
|
|
&& cd dnscrypt-proxy \
|
2016-04-13 11:16:36 +02:00
|
|
|
&& curl -sSL https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-$DNSCRYPT_VERSION.tar.gz | tar xz --strip 1 \
|
2015-06-12 13:11:47 +02:00
|
|
|
&& ./configure --prefix=/usr --with-plugins \
|
2015-05-30 15:21:24 +02:00
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf dnscrypt-proxy \
|
2016-04-13 10:15:20 +02:00
|
|
|
&& apt-get purge --auto-remove -y ca-certificates \
|
|
|
|
build-essential \
|
|
|
|
curl \
|
2015-05-30 15:21:24 +02:00
|
|
|
&& rm -rf /usr/lib/apt/lists/*
|
|
|
|
|
|
|
|
EXPOSE 53/tcp 53/udp
|
|
|
|
|
2015-05-30 16:22:28 +02:00
|
|
|
CMD dnscrypt-proxy --local-address=$LISTEN_ADDR \
|
|
|
|
--provider-name=$PROVIDER_NAME \
|
|
|
|
--provider-key=$PROVIDER_KEY \
|
|
|
|
--resolver-address=$RESOLVER_ADDR
|
2015-03-02 05:26:21 +02:00
|
|
|
|