mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-22 05:09:09 +02:00
add dnscrypt-proxy-arm
This commit is contained in:
parent
85ce1d0b92
commit
4275877ed7
@ -14,7 +14,9 @@ ENV PROVIDER_KEY B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE0
|
||||
|
||||
RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y build-essential curl \
|
||||
&& apt-get install -y ca-certificates \
|
||||
build-essential \
|
||||
curl \
|
||||
&& mkdir libsodium \
|
||||
&& cd libsodium \
|
||||
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 \
|
||||
@ -30,7 +32,9 @@ RUN set -xe \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf dnscrypt-proxy \
|
||||
&& apt-get purge --auto-remove -y build-essential curl \
|
||||
&& apt-get purge --auto-remove -y ca-certificates \
|
||||
build-essential \
|
||||
curl \
|
||||
&& rm -rf /usr/lib/apt/lists/*
|
||||
|
||||
EXPOSE 53/tcp 53/udp
|
||||
|
46
dnscrypt/proxy/arm/Dockerfile
Normal file
46
dnscrypt/proxy/arm/Dockerfile
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# Dockerfile for dnscrypt-proxy-arm
|
||||
#
|
||||
|
||||
FROM resin/rpi-raspbian
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV LIBSODIUM_VERSION 1.0.10
|
||||
ENV DNSCRYPT_VERSION 1.6.1
|
||||
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 set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y ca-certificates \
|
||||
build-essential \
|
||||
curl \
|
||||
&& mkdir libsodium \
|
||||
&& cd libsodium \
|
||||
&& curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar xz --strip 1 \
|
||||
&& ./configure --prefix=/usr --enable-minimal \
|
||||
&& make install \
|
||||
&& ldconfig \
|
||||
&& cd .. \
|
||||
&& rm -rf libsodium \
|
||||
&& mkdir dnscrypt-proxy \
|
||||
&& cd dnscrypt-proxy \
|
||||
&& curl -sSL http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-$DNSCRYPT_VERSION.tar.gz | tar xz --strip 1 \
|
||||
&& ./configure --prefix=/usr --with-plugins \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf dnscrypt-proxy \
|
||||
&& apt-get purge --auto-remove -y ca-certificates \
|
||||
build-essential \
|
||||
curl \
|
||||
&& rm -rf /usr/lib/apt/lists/*
|
||||
|
||||
EXPOSE 53/tcp 53/udp
|
||||
|
||||
CMD dnscrypt-proxy --local-address=$LISTEN_ADDR \
|
||||
--provider-name=$PROVIDER_NAME \
|
||||
--provider-key=$PROVIDER_KEY \
|
||||
--resolver-address=$RESOLVER_ADDR
|
||||
|
Loading…
x
Reference in New Issue
Block a user