docker-archlinux-hugo/Dockerfile

19 lines
596 B
Docker
Raw Normal View History

2020-03-02 00:42:59 +01:00
FROM archlinux
ENV container=docker
ARG BUILD_DATE
ARG VCS_REF
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
2020-03-02 00:42:59 +01:00
RUN pacman -Syu --noconfirm --needed wget tar git \
&& pacman -Scc \
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/*
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.66.0/hugo_extended_0.66.0_Linux-64bit.tar.gz -O hugo.tgz \
&& tar xfv hugo.tgz && rm -v hugo.tgz README.md LICENSE \
&& mv -v hugo /usr/local/bin/