dockerfile: consolidate multiple RUN statements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-03-26 15:11:40 +01:00
parent 8704e0f723
commit 25f0f01e58
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -20,9 +20,9 @@ WORKDIR /tmp/
# hadolint ignore=DL3041 # hadolint ignore=DL3041
RUN microdnf --refresh upgrade -y && microdnf install -y bsdtar git findutils \ RUN microdnf --refresh upgrade -y && microdnf install -y bsdtar git findutils \
--nodocs --setopt install_weak_deps=0 \ --nodocs --setopt install_weak_deps=0 \
&& microdnf clean all -y && microdnf clean all -y; \
# ignore DL3059 \
RUN bsdtar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \ bsdtar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \
&& chmod +x /tmp/hugo \ && chmod +x /tmp/hugo \
&& mkdir -pv /usr/local/bin \ && mkdir -pv /usr/local/bin \
&& mv -v /tmp/hugo /usr/local/bin/ \ && mv -v /tmp/hugo /usr/local/bin/ \