1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-03 13:21:49 +02:00
This commit is contained in:
kev 2015-06-12 18:02:11 +08:00
parent e92d41c2ef
commit 4272e0857d
2 changed files with 15 additions and 12 deletions

View File

@ -5,10 +5,17 @@
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
ENV LIBSODIUM_VERSION 1.0.3
ENV DNSCRYPT_VERSION 1.5.0
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
RUN apt-get update \
&& apt-get install -y build-essential curl \
&& mkdir libsodium \
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-1.0.3.tar.gz | tar xz --strip 1 -C libsodium \
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 -C libsodium \
&& cd libsodium \
&& ./configure --prefix=/usr \
&& make install \
@ -16,7 +23,7 @@ RUN apt-get update \
&& cd .. \
&& rm -rf libsodium \
&& mkdir dnscrypt-proxy \
&& curl -sSL http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz | tar xz --strip 1 -C dnscrypt-proxy \
&& curl -sSL http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-$DNSCRYPT_VERSION.tar.gz | tar xz --strip 1 -C dnscrypt-proxy \
&& cd dnscrypt-proxy \
&& ./configure --prefix=/usr \
&& make install \
@ -24,11 +31,6 @@ RUN apt-get update \
&& rm -rf dnscrypt-proxy \
&& rm -rf /usr/lib/apt/lists/*
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
EXPOSE 53/tcp 53/udp
CMD dnscrypt-proxy --local-address=$LISTEN_ADDR \

View File

@ -5,6 +5,11 @@
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
ENV LIBSODIUM_VERSION 1.0.3
ENV RESOLVER_ADDR 8.8.8.8:53
ENV LISTEN_ADDR 0.0.0.0:443
ENV PROVIDER_NAME 2.dnscrypt-cert.datageek.info
RUN apt-get update \
&& apt-get install -y autoconf \
automake \
@ -13,7 +18,7 @@ RUN apt-get update \
git \
libevent-dev \
&& mkdir libsodium \
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-1.0.3.tar.gz | tar xz --strip 1 -C libsodium \
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 -C libsodium \
&& cd libsodium \
&& ./configure --prefix=/usr \
&& make install \
@ -45,10 +50,6 @@ RUN mkdir -p /var/lib/dnscrypt-wrapper \
--provider-secretkey-file=secret.key \
--gen-cert-file > cert_file.txt
ENV RESOLVER_ADDR 8.8.8.8:53
ENV LISTEN_ADDR 0.0.0.0:443
ENV PROVIDER_NAME 2.dnscrypt-cert.datageek.info
WORKDIR /var/lib/dnscrypt-wrapper
VOLUME /var/lib/dnscrypt-wrapper