2022-08-08 08:58:32 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
COPY ./run.sh /opt/run.sh
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache bind \
|
|
|
|
&& chmod +x /opt/run.sh
|
|
|
|
|
2022-08-08 09:01:02 +00:00
|
|
|
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
|
2022-08-08 08:58:32 +00:00
|
|
|
|
|
|
|
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]
|
|
|
|
CMD ["/opt/run.sh"]
|
2022-08-08 09:01:02 +00:00
|
|
|
EXPOSE 53/udp 53/tcp 953/tcp
|