mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
add dnscrypt
This commit is contained in:
parent
625937a88b
commit
f1c30ef00e
27
dnscrypt/Dockerfile
Normal file
27
dnscrypt/Dockerfile
Normal 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
2
dnscrypt/dnscrypt.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[program:dnscrypt]
|
||||
command = dnscrypt-proxy -a 127.0.0.1:2053 -R opendns
|
2
dnscrypt/dnsmasq.conf
Normal file
2
dnscrypt/dnsmasq.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[program:dnsmasq]
|
||||
command = dnsmasq -d
|
Loading…
Reference in New Issue
Block a user