hadolint: ad DL3059
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed

This commit is contained in:
surtur 2021-07-30 22:45:09 +02:00
parent fa5c787493
commit 3f71770052
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -16,14 +16,15 @@ ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_ext
WORKDIR /tmp/
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
# ignore DL3059
RUN bsdtar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \
&& chmod +x /tmp/hugo \
&& mkdir -pv /usr/local/bin \
&& mv -v /tmp/hugo /usr/local/bin/ \
&& rm -rfv /tmp/*
RUN microdnf clean all -y
RUN rm -rf /usr/share/zoneinfo/* ; rm -rf /usr/include/* ; \
&& rm -rfv /tmp/* \
&& rm -rf /usr/share/zoneinfo/* ; rm -rf /usr/include/* ; \
find /. -name "*~" -type f -delete; \
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
WORKDIR /