docker-bind/Dockerfile
quackerd 02cc78f27d
All checks were successful
continuous-integration/drone/push Build is passing
initial
2022-08-08 11:01:02 +02:00

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