FROM 192.168.4.36/baseimg/jdk8
MAINTAINER ag "xiaoguang.xu@quantgroup.cn"

#安装必要工具
RUN apt-get install -y bind-tools \
		&& apt-get install -y ca-certificates \
		&& apt-get install -y openssl \
		&& apt-get install -y update-ca-certificates \


# only need ca-certificates & openssl if want to use https_google
#RUN apk --update add bind-tools ca-certificates openssl && update-ca-certificates && rm -rf /var/cache/apk/*

ADD coredns /coredns

EXPOSE 53 53/udp
ENTRYPOINT ["/coredns"]