diff --git a/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile new file mode 100644 index 0000000..a946bec --- /dev/null +++ b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:stable-slim +MAINTAINER Stéphane Gourichon + +RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get upgrade +RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9 + +COPY named.conf.local /etc/bind/ +COPY sites /etc/bind/sites + +RUN chown bind:bind -Rc /etc/bind/named.conf.local /etc/bind/sites && chmod =0,u=rX -Rc /etc/bind/named.conf.local /etc/bind/sites + +EXPOSE 53 +ENTRYPOINT ["/usr/sbin/named", "-g", "-u", "bind" ] diff --git a/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh new file mode 100644 index 0000000..e07408f --- /dev/null +++ b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd -P "$(dirname "$(readlink -f "$0")" )" + +docker build -t gouri_infra:net_dns -f $PWD/Dockerfile $PWD/../../../../../andre_etckeeper_history/etc/bind