1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-12 04:23:04 +02:00

add dnscrypt

This commit is contained in:
kev 2015-03-02 11:26:21 +08:00
parent 625937a88b
commit f1c30ef00e
3 changed files with 31 additions and 0 deletions

27
dnscrypt/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM ubuntu:14.04
MAINTAINER kev
RUN apt-get update
RUN apt-get install -y build-essential supervisor dnsmasq
ADD ./*.conf /etc/supervisor/conf.d/
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/
WORKDIR /tmp
RUN tar xzf libsodium-1.0.2.tar.gz && \
cd libsodium-1.0.2 && \
./configure && \
make && \
make install
RUN echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig
RUN tar xzf dnscrypt-proxy-1.4.3.tar.gz && \
cd dnscrypt-proxy && \
./configure && \
make && \
make install
CMD supervisor -n -c /etc/supervisor/supervisord.conf

2
dnscrypt/dnscrypt.conf Normal file
View File

@ -0,0 +1,2 @@
[program:dnscrypt]
command = dnscrypt-proxy -a 127.0.0.1:2053 -R opendns

2
dnscrypt/dnsmasq.conf Normal file
View File

@ -0,0 +1,2 @@
[program:dnsmasq]
command = dnsmasq -d