mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update
This commit is contained in:
parent
18fe8bc01b
commit
3efa28a933
@ -8,25 +8,22 @@ MAINTAINER kev <noreply@datageek.info>
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV DNS_VER 1.3.1
|
||||
ENV DNS_URL https://github.com/clowwindy/ChinaDNS/releases/download/${DNS_VER}/chinadns-${DNS_VER}.tar.gz
|
||||
ENV DNS_DIR /tmp/chinadns
|
||||
ENV DNS_FILE chinadns.tar.gz
|
||||
ENV DNS_MD5 9e2aca1a265aec7ca87f4d0377d9fa74
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y build-essential curl dnsmasq supervisor \
|
||||
&& mkdir -p ${DNS_DIR} \
|
||||
&& cd ${DNS_DIR} \
|
||||
&& mkdir -p chinadns \
|
||||
&& cd chinadns \
|
||||
&& curl -sSL ${DNS_URL} -o ${DNS_FILE} \
|
||||
&& echo "${DNS_MD5} ${DNS_FILE}" | md5sum -c \
|
||||
&& tar xzf ${DNS_FILE} --strip 1 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf ${DNS_DIR} \
|
||||
&& rm -rf chinadns \
|
||||
&& apt-get remove -y build-essential \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest \
|
||||
|
@ -1,6 +1,11 @@
|
||||
[program:chinadns]
|
||||
priority = 100
|
||||
command = chinadns -m -c /etc/chnroute.txt -p 2053
|
||||
command = chinadns -b 127.0.0.1
|
||||
-c /etc/chnroute.txt
|
||||
-m
|
||||
-p 2053
|
||||
-s 114.114.114.114,208.67.222.222:443,8.8.8.8
|
||||
-y 0.3
|
||||
|
||||
[program:dnsmasq]
|
||||
priority = 200
|
||||
|
Loading…
Reference in New Issue
Block a user