容器化的无污染DNS服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
553 B

FROM alpine as tools
COPY . /tmp/cleardns
RUN apk --update add --no-cache curl wget && \
sh /tmp/cleardns/tools.sh
FROM alpine
COPY . /tmp/cleardns
COPY --from=tools /tmp/tools/ /usr/bin/
RUN mv /tmp/cleardns/overture/ /etc/ && \
mv /tmp/cleardns/smartdns/ /etc/ && \
mkdir -p /opt/AdGuardHome && \
mkdir -p /etc/smartdns/expose && \
mkdir /etc/cleardns && \
mv /tmp/cleardns/init.sh / && \
rm -rf /tmp/cleardns && \
sed -i '$i\0\t0\t*\t*\t*\t/etc/overture/update.sh' /var/spool/cron/crontabs/root
CMD ["sh","/init.sh"]