Combine ENTRYPOINT and CMD, so the config file and -f can be easily overriden

This commit is contained in:
Ondřej Surý
2024-08-27 10:13:44 +02:00
parent e126f78544
commit 54e724da5b
+2 -1
View File
@@ -120,4 +120,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"]