15 lines
373 B
Docker
15 lines
373 B
Docker
FROM alpine:latest
|
|
COPY ./run.sh /opt/run.sh
|
|
RUN set -xe \
|
|
&& apk add --no-cache bind \
|
|
&& chmod +x /opt/run.sh
|
|
|
|
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 |