Dockerfile 365 B

123456789101112131415161718
  1. FROM golang:1.9.1-stretch
  2. LABEL Description="Image for etcd DNS testing"
  3. RUN apt update -y \
  4. && apt install -y \
  5. bind9 \
  6. dnsutils
  7. RUN mkdir /var/bind
  8. RUN chown bind /var/bind
  9. ADD Procfile.tls /Procfile.tls
  10. ADD run.sh /run.sh
  11. ADD named.conf etcd.zone rdns.zone /etc/bind/
  12. ADD resolv.conf /etc/resolv.conf
  13. RUN go get github.com/mattn/goreman
  14. CMD ["/run.sh"]