diff --git a/Dockerfile b/Dockerfile index 1f56387..a4279cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,13 @@ MAINTAINER BIND 9 Developers ENV DEBIAN_FRONTEND noninteractive ENV LC_ALL C.UTF-8 -ENV DEB_VERSION=1:9.16.6-3+ubuntu20.04.1+isc+3 RUN apt-get -qqqy update RUN apt-get -qqqy install apt-utils software-properties-common dctrl-tools + +ARG DEB_VERSION=1:9.16.6-3+ubuntu20.04.1+isc+3 RUN add-apt-repository -y ppa:isc/bind -RUN apt-get -qqqy dist-upgrade -RUN apt-get -qqqy install bind9=${DEB_VERSION} bind9-utils=${DEB_VERSION} +RUN apt-get -qqqy update && apt-get -qqqy dist-upgrade && apt-get -qqqy install bind9=$DEB_VERSION bind9-utils=$DEB_VERSION VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]