From b09facbfc03d785fcb8842c08cdc6825dddcbb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 3 Sep 2020 16:30:37 +0200 Subject: [PATCH] Use ARG directive to disable caching on the apt-get install command --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"]