dockerfile: consolidate multiple RUN statements
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8704e0f723
commit
25f0f01e58
@ -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/ \
|
||||||
|
Loading…
Reference in New Issue
Block a user