24 lines
776 B
Docker
24 lines
776 B
Docker
FROM archlinux:latest
|
|
|
|
ENV HUGO_VERSION 0.67.1
|
|
|
|
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 \
|
|
org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/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 ./hugo.tar.gz
|
|
|
|
|
|
RUN pacman -Sy --noconfirm --needed git \
|
|
&& pacman -Scc \
|
|
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/*
|
|
|
|
RUN bsdtar xfv hugo.tar.gz && rm -v hugo.tar.gz README.md LICENSE \
|
|
&& mv -v hugo /usr/local/bin/
|