Added Cloudflare 1.1.1.1 DNS over TLS

This commit is contained in:
Quentin McGaw
2018-04-13 15:35:31 -04:00
parent 712b10dbf9
commit 3bd804843c
6 changed files with 94 additions and 74 deletions

View File

@@ -1,18 +1,19 @@
FROM alpine:3.7
LABEL maintainer="quentin.mcgaw@gmail.com" \
description="VPN client container to private internet access servers based on Alpine Linux and OpenVPN" \
download="3.3MB" \
size="8MB" \
ram="4.3MB" \
description="VPN client to private internet access servers using OpenVPN, Alpine and Cloudflare 1.1.1.1 DNS over TLS" \
download="?MB" \
size="12.9MB" \
ram="?MB" \
cpu_usage="Very low" \
github="https://github.com/qdm12/private-internet-access-docker"
COPY script.sh .
RUN chmod +x script.sh && \
apk add -q --progress --no-cache --update openvpn && \
apk add -q --progress --no-cache --update --virtual build-dependencies wget unzip && \
wget https://www.privateinternetaccess.com/openvpn/openvpn.zip && \
unzip openvpn.zip && \
rm openvpn.zip && \
RUN apk add -q --progress --no-cache --update openvpn unbound && \
apk add -q --progress --no-cache --update --virtual build-dependencies ca-certificates wget unzip && \
wget -q https://www.privateinternetaccess.com/openvpn/openvpn.zip && \
unzip -q openvpn.zip && \
apk del -q --progress --purge build-dependencies && \
rm -rf /var/cache/apk/*
ENTRYPOINT /script.sh
rm -rf /var/cache/apk/* /etc/unbound/unbound.conf /openvpn.zip
COPY unbound.conf /etc/unbound/unbound.conf
ENTRYPOINT echo "nameserver 127.0.0.1" > /etc/resolv.conf && \
echo "options ndots:0" >> /etc/resolv.conf && \
unbound && \
openvpn --config "$REGION".ovpn --auth-user-pass auth.conf