容器化的无污染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.

13 lines
383 B

FROM alpine as asset
COPY ./asset.sh /
3 years ago
RUN apk --update add --no-cache curl wget && \
sh /asset.sh
3 years ago
FROM alpine
COPY ["./overture/", "./init.sh", "/etc/overture/"]
COPY --from=asset /tmp/asset/ /usr/bin/
RUN mv /etc/overture/init.sh / && \
mkdir -p /etc/cleardns && \
sed -i '$i\0\t4\t*\t*\t*\t/etc/overture/update.sh' /var/spool/cron/crontabs/root
3 years ago
CMD ["sh","/init.sh"]