2020-10-15 01:56:02 +02:00
|
|
|
FROM fedora:33
|
2020-06-07 06:28:44 +02:00
|
|
|
|
2020-12-20 17:25:36 +01:00
|
|
|
ENV HUGO_VERSION 0.79.1
|
2020-06-07 06:28:44 +02:00
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
|
|
|
LABEL description="Docker image for building websites with Hugo static site generator."
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
2020-11-26 15:17:47 +01:00
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-hugo.git" \
|
2020-06-07 06:28:44 +02:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
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 /tmp/hugo.tar.gz
|
|
|
|
|
|
|
|
WORKDIR /tmp/
|
2020-10-15 01:56:02 +02:00
|
|
|
RUN dnf --refresh upgrade -y && dnf install -y git findutils && dnf autoremove -y
|
2020-06-07 06:28:44 +02:00
|
|
|
RUN tar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE \
|
|
|
|
&& chmod +x /tmp/hugo \
|
|
|
|
&& mkdir -pv /usr/local/bin \
|
|
|
|
&& mv -v /tmp/hugo /usr/local/bin/
|
|
|
|
RUN dnf clean all -y \
|
2020-10-15 01:56:02 +02:00
|
|
|
&& rm -rv /usr/share/zoneinfo/* ; rm -rv /usr/include/* ; \
|
2020-06-07 06:28:44 +02:00
|
|
|
find /. -name "*~" -type f -delete; \
|
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete; \
|
2020-10-15 01:56:02 +02:00
|
|
|
rm -rv /tmp/* ; \
|
2020-12-29 01:47:03 +01:00
|
|
|
dnf autoremove -y -x findutils; dnf clean all -y || true
|
2020-06-07 06:28:44 +02:00
|
|
|
WORKDIR /
|