]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
docker: merge apt-get update & install layers
authorJosh Soref <jsoref@users.noreply.github.com>
Sun, 29 Aug 2021 14:48:46 +0000 (10:48 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Mon, 30 Aug 2021 13:21:33 +0000 (09:21 -0400)
Otherwise the one could be stale relative to the other

build-scripts/docker/repo-test/templates/Dockerfile-debian.jinja2

index fea16594d52e82ab2fa33da7a06d7e6ad5c7b5b2..b095e4471f163ce47620d78566bf456a4679c17a 100644 (file)
@@ -1,7 +1,6 @@
 FROM {{ os_image }}:{{ os_version }}
 
-RUN apt-get update
-RUN apt-get install -y curl gnupg dnsutils apt-transport-https
+RUN apt-get update && apt-get install -y curl gnupg dnsutils apt-transport-https
 
 {% if release.startswith('dnsdist-') %}
 COPY pkg-pin /etc/apt/preferences.d/dnsdist
@@ -13,8 +12,7 @@ COPY pdns.list.{{ release }}.{{ os }}-{{ os_version }} /etc/apt/sources.list.d/p
 
 RUN curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
 RUN curl https://repo.powerdns.com/CBC8B383-pub.asc | apt-key add -
-RUN apt-get update
-RUN apt-get install -y {{ pkg }}
+RUN apt-get update && apt-get install -y {{ pkg }}
 
 {# in the old script this was just for rec-43, -44 and -45 #}
 {% if release.startswith('rec-') %}