-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from ubuntu:16.04
ENV DEBIAN_FRONTEND="noninteractive"
# update box
RUN apt-get update
# add the bind use
RUN useradd -ms /bin/bash bind
# install bind9
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y bind9 bind9-host curl
# setup add bind config files
COPY config/named.conf /etc/bind/named.conf
COPY config/named.conf.local /etc/bind/named.conf.local
COPY config/named.conf.options /etc/bind/named.conf.options
# add hosts
COPY config/house.mager.hosts /var/lib/bind/house.mager.hosts
COPY config/home.heatherandkevin.net.hosts /var/lib/bind/home.heatherandkevin.net.hosts
COPY config/null.zone.file /var/lib/bind/null.zone.file
# install update script
COPY support/update_adblock.sh /usr/sbin/update_adblock.sh
RUN chmod a+x /usr/sbin/update_adblock.sh
RUN /usr/sbin/update_adblock.sh
CMD ["/usr/sbin/named", "-u", "bind", "-fg"]