Dockerfile 477 B

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