1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/dnscrypt/proxy/Dockerfile

46 lines
1.6 KiB
Docker
Raw Normal View History

2015-03-02 03:51:23 +00:00
#
2015-05-30 13:21:24 +00:00
# Dockerfile for dnscrypt-proxy
2015-03-02 03:51:23 +00:00
#
2015-05-30 13:21:24 +00:00
FROM debian:jessie
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-03-02 03:26:21 +00:00
2017-10-02 03:37:44 +00:00
ENV LIBSODIUM_VERSION 1.0.15
2017-06-11 09:02:36 +00:00
ENV DNSCRYPT_VERSION 1.9.5
2015-06-12 10:02:11 +00: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 01:49:26 +00:00
RUN set -xe \
&& apt-get update \
2016-04-13 08:15:20 +00:00
&& apt-get install -y ca-certificates \
build-essential \
curl \
2015-05-30 13:21:24 +00:00
&& mkdir libsodium \
2015-05-30 13:27:11 +00:00
&& cd libsodium \
2015-07-16 17:01:07 +00:00
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 \
2015-06-12 10:12:42 +00:00
&& ./configure --prefix=/usr --enable-minimal \
2015-05-30 13:21:24 +00:00
&& make install \
&& ldconfig \
&& cd .. \
&& rm -rf libsodium \
&& mkdir dnscrypt-proxy \
2015-05-30 13:27:11 +00:00
&& cd dnscrypt-proxy \
2016-04-13 09:16:36 +00:00
&& curl -sSL https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-$DNSCRYPT_VERSION.tar.gz | tar xz --strip 1 \
2015-06-12 11:11:47 +00:00
&& ./configure --prefix=/usr --with-plugins \
2015-05-30 13:21:24 +00:00
&& make install \
&& cd .. \
&& rm -rf dnscrypt-proxy \
2016-04-13 08:15:20 +00:00
&& apt-get purge --auto-remove -y ca-certificates \
build-essential \
curl \
2015-05-30 13:21:24 +00:00
&& rm -rf /usr/lib/apt/lists/*
EXPOSE 53/tcp 53/udp
2015-05-30 14:22:28 +00:00
CMD dnscrypt-proxy --local-address=$LISTEN_ADDR \
--provider-name=$PROVIDER_NAME \
--provider-key=$PROVIDER_KEY \
--resolver-address=$RESOLVER_ADDR