surtur
27276bd5f4
All checks were successful
continuous-integration/drone/push Build is passing
- explicitly target 'latest' base image tag - get back to *not* updating the whole system (use `pacman -Sy` instead of `-Syu`) as that is a waste of resources when only a couple of packages are to be used in the end. that results in smaller image size and shorter build time
23 lines
740 B
Docker
23 lines
740 B
Docker
FROM archlinux/base: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
|
|
|
|
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/
|