From 4efb5748e8ed55919cc458794a5520446c2eb0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 27 Aug 2024 10:13:44 +0200 Subject: [PATCH] Combine ENTRYPOINT and CMD, so the config file and -f can be easily overriden --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c333987..dd42f5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -123,4 +123,5 @@ VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"] EXPOSE 53/udp 53/tcp 953/tcp 853/tcp 443/tcp -ENTRYPOINT ["/usr/sbin/named", "-f", "-c", "/etc/bind/named.conf", "-u", "bind"] +ENTRYPOINT ["/usr/sbin/named", "-u", "bind"] +CMD ["-f", "-c", "/etc/bind/named.conf"]