go.etcd.io/etcd@v3.3.27+incompatible/hack/scripts-dev/docker-dns-srv/Dockerfile (about)

     1  FROM ubuntu:17.10
     2  
     3  RUN rm /bin/sh && ln -s /bin/bash /bin/sh
     4  RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
     5  
     6  RUN apt-get -y update \
     7    && apt-get -y install \
     8    build-essential \
     9    gcc \
    10    apt-utils \
    11    pkg-config \
    12    software-properties-common \
    13    apt-transport-https \
    14    libssl-dev \
    15    sudo \
    16    bash \
    17    curl \
    18    tar \
    19    git \
    20    netcat \
    21    bind9 \
    22    dnsutils \
    23    && apt-get -y update \
    24    && apt-get -y upgrade \
    25    && apt-get -y autoremove \
    26    && apt-get -y autoclean
    27  
    28  ENV GOROOT /usr/local/go
    29  ENV GOPATH /go
    30  ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
    31  ENV GO_VERSION REPLACE_ME_GO_VERSION
    32  ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
    33  RUN rm -rf ${GOROOT} \
    34    && curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
    35    && mkdir -p ${GOPATH}/src ${GOPATH}/bin \
    36    && go version \
    37    && go get -v -u github.com/mattn/goreman
    38  
    39  RUN mkdir -p /var/bind /etc/bind
    40  RUN chown root:bind /var/bind /etc/bind
    41  
    42  ADD named.conf etcd.zone rdns.zone /etc/bind/
    43  RUN chown root:bind /etc/bind/named.conf /etc/bind/etcd.zone /etc/bind/rdns.zone
    44  ADD resolv.conf /etc/resolv.conf