2022-04-20 20:06:23 +02:00
|
|
|
FROM docker.io/immawanderer/archlinux:linux-amd64
|
2022-04-20 19:02:00 +02:00
|
|
|
|
2022-10-10 15:00:02 +02:00
|
|
|
ENV HUGO_VERSION 0.104.3
|
2022-04-20 19:02:00 +02:00
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
|
|
|
LABEL description="Container image for building websites with Hugo static site generator."
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-hugo.git" \
|
|
|
|
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/
|
|
|
|
RUN pacman -Syu --noconfirm --needed git && \
|
|
|
|
pacman --noconfirm -Rn "$(pacman -Qdtq)" || true && \
|
|
|
|
\
|
|
|
|
bsdtar 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/ && \
|
|
|
|
\
|
|
|
|
pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* && \
|
|
|
|
rm -rf /usr/share/zoneinfo/*; \
|
|
|
|
rm -rf /usr/share/i18n/*; \
|
|
|
|
rm -rf /usr/include/*; \
|
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
|
|
|
|
WORKDIR /
|