updated Dockerfile with space-saving goodness
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-04-22 17:49:44 +02:00
parent 878d71070c
commit c34b49cc9d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -12,17 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0 org.label-schema.license=GPL-3.0
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz ./hugo.tar.gz ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp/hugo.tar.gz
WORKDIR /tmp/ WORKDIR /tmp/
RUN bsdtar xfv hugo.tar.gz && rm -v hugo.tar.gz README.md LICENSE \ RUN pacman -Sy --noconfirm --needed git && pacman --noconfirm -R $(pacman -Qdtq) \
&& mv -v hugo /usr/local/bin/ && bsdtar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE \
&& chmod +x /tmp/hugo \
RUN pacman -Sy --noconfirm --needed git && pacman --noconfirm -R $(pacman -Qdtq) && mkdir -pv /usr/local/bin \
RUN pacman --noconfirm -Runs \ && mv -v /tmp/hugo /usr/local/bin/ \
&& pacman --noconfirm -Runs \
gzip less sysfsutils which \ gzip less sysfsutils which \
&& pacman --noconfirm -Runs tar gawk || true \ && pacman --noconfirm -Runs tar gawk || true \
&& pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
&& rm -rv /usr/share/info/* \ && rm -rv /usr/share/info/* \
&& rm -rv /usr/share/man/* \ && rm -rv /usr/share/man/* \
&& rm -rv /usr/share/doc/* \ && rm -rv /usr/share/doc/* \