This commit is contained in:
parent
97e0a7abbe
commit
02cc78f27d
12
Dockerfile
12
Dockerfile
@ -4,12 +4,12 @@ RUN set -xe \
|
||||
&& apk add --no-cache bind \
|
||||
&& chmod +x /opt/run.sh
|
||||
|
||||
RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind
|
||||
RUN mkdir -p /var/cache/bind && chown bind:bind /var/cache/bind && chmod 755 /var/cache/bind
|
||||
RUN mkdir -p /var/lib/bind && chown bind:bind /var/lib/bind && chmod 755 /var/lib/bind
|
||||
RUN mkdir -p /var/log/bind && chown bind:bind /var/log/bind && chmod 755 /var/log/bind
|
||||
RUN mkdir -p /run/named && chown bind:bind /run/named && chmod 755 /run/named
|
||||
RUN mkdir -p /etc/bind
|
||||
RUN mkdir -p /var/cache/bind
|
||||
RUN mkdir -p /var/lib/bind
|
||||
RUN mkdir -p /var/log/bind
|
||||
RUN mkdir -p /run/named
|
||||
|
||||
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]
|
||||
CMD ["/opt/run.sh"]
|
||||
EXPOSE ["53/udp", "53/tcp", "953/tcp"]
|
||||
EXPOSE 53/udp 53/tcp 953/tcp
|
Loading…
Reference in New Issue
Block a user