From b24b80ec2014def03dc9a17075e7f623faf53f50 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 26 Mar 2022 03:18:16 +0100 Subject: [PATCH] refactor(dockerfile): consolidate consecutive RUNs .. to achieve faster builds --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d3493c..e00fc2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ # hadolint shell=/usr/bin/bash RUN printf "[main]\ngpg_check=1\ninstallonly_limit=2\nclean_requirements_on_remove=True\nfastestmirror=True\nmax_parallel_downloads=7\n" > /etc/dnf/dnf.conf; \ cat /etc/dnf/dnf.conf; \ + \ dnf install 'dnf-command(config-manager)' -y && \ dnf config-manager --set-enabled updates && \ dnf config-manager --set-enabled updates-testing && \ - dnf --refresh upgrade -y -# hadolint ignore DL3059 -RUN dnf install --nodocs dnf dnf-plugins-core -y && \ + \ + dnf --refresh upgrade -y && \ + \ + dnf install --nodocs dnf dnf-plugins-core -y && \ dnf copr enable eddsalkield/iwyu -y && \ dnf install --nodocs --setopt install_weak_deps=0 -y \ git \