github.com/tommi2day/gomodules@v1.13.2-0.20240423190010-b7d55d252a27/test/docker/dns/Dockerfile (about)

     1  ARG BIND_VERSION=9.18
     2  ARG VENDOR_IMAGE_PREFIX=""
     3  ARG BIND_IMAGE=${VENDOR_IMAGE_PREFIX}docker.io/internetsystemsconsortium/bind9:${BIND_VERSION}
     4  FROM ${BIND_IMAGE}
     5  
     6  #Copy configuration files
     7  COPY named.conf.options /etc/bind/
     8  COPY named.conf.local /etc/bind/
     9  COPY netlib.lan.zone /etc/bind/zones/
    10  
    11  # Expose Ports
    12  EXPOSE 53/tcp
    13  EXPOSE 53/udp
    14  EXPOSE 953/tcp
    15  
    16  # Start the Name Service
    17  CMD ["/usr/sbin/named", "-g", "-c", "/etc/bind/named.conf", "-u", "bind"]