Commit fe9695e9 authored by Tomas Krizek's avatar Tomas Krizek

docker: use sensible defaults

Use default configuration file with example zone file and drop the
user to interactive knotc cli when launched.

Fixes #583
parent 5a07f4e3
......@@ -3,7 +3,7 @@ MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
# Select entrypoint
WORKDIR /root
CMD ["/usr/local/sbin/knotd"]
CMD /sbin/knotd & /sbin/knotc
# Expose port
EXPOSE 53/UDP 53/TCP
......@@ -32,3 +32,7 @@ apt-get purge -q -y ${BUILD_PKGS} && \
apt-get autoremove -q -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Use example configuration and zone
RUN mv /etc/knot/knot.sample.conf /etc/knot/knot.conf && \
echo ' - domain: example.com\n file: "/etc/knot/example.com.zone"' >> /etc/knot/knot.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment