chore: always force rm
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2021-04-01 12:25:48 +02:00
parent fac475a223
commit ab5a65557d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -16,14 +16,14 @@ ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_ext
WORKDIR /tmp/
RUN dnf --refresh upgrade -y && dnf install -y git findutils
RUN tar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE \
RUN tar 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 -rv /tmp/*
&& rm -rfv /tmp/*
RUN dnf autoremove -y -x findutils \
&& dnf clean all -y
RUN rm -r /usr/share/zoneinfo/* ; rm -r /usr/include/* ; \
RUN 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 /