refactor(dockerfile): consolidate consecutive RUNs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
.. to achieve faster builds
This commit is contained in:
parent
398fdb5553
commit
b24b80ec20
@ -14,12 +14,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||||||
# hadolint shell=/usr/bin/bash
|
# 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; \
|
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; \
|
cat /etc/dnf/dnf.conf; \
|
||||||
|
\
|
||||||
dnf install 'dnf-command(config-manager)' -y && \
|
dnf install 'dnf-command(config-manager)' -y && \
|
||||||
dnf config-manager --set-enabled updates && \
|
dnf config-manager --set-enabled updates && \
|
||||||
dnf config-manager --set-enabled updates-testing && \
|
dnf config-manager --set-enabled updates-testing && \
|
||||||
dnf --refresh upgrade -y
|
\
|
||||||
# hadolint ignore DL3059
|
dnf --refresh upgrade -y && \
|
||||||
RUN dnf install --nodocs dnf dnf-plugins-core -y && \
|
\
|
||||||
|
dnf install --nodocs dnf dnf-plugins-core -y && \
|
||||||
dnf copr enable eddsalkield/iwyu -y && \
|
dnf copr enable eddsalkield/iwyu -y && \
|
||||||
dnf install --nodocs --setopt install_weak_deps=0 -y \
|
dnf install --nodocs --setopt install_weak_deps=0 -y \
|
||||||
git \
|
git \
|
||||||
|
Loading…
Reference in New Issue
Block a user