2021-04-22 22:35:03 +02:00
|
|
|
FROM immawanderer/archlinux:linux-amd64
|
2020-03-04 17:09:02 +01:00
|
|
|
|
2021-11-17 18:32:44 +01:00
|
|
|
ENV HUGO_VERSION 0.89.4
|
2020-03-08 03:30:24 +01:00
|
|
|
|
2020-03-04 17:09:02 +01:00
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
2020-03-11 19:04:49 +01:00
|
|
|
LABEL description="Docker image for building websites with Hugo static site generator."
|
|
|
|
|
2020-03-04 17:09:02 +01:00
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
2020-11-26 15:16:23 +01:00
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-hugo.git" \
|
2020-03-17 04:40:50 +01:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.license=GPL-3.0
|
2020-03-04 17:09:02 +01:00
|
|
|
|
2020-04-22 17:49:44 +02:00
|
|
|
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp/hugo.tar.gz
|
2020-03-08 03:43:40 +01:00
|
|
|
|
2020-04-22 17:34:04 +02:00
|
|
|
WORKDIR /tmp/
|
2021-04-22 22:35:03 +02:00
|
|
|
RUN pacman -Syu --noconfirm --needed git
|
|
|
|
RUN pacman --noconfirm -Rn "$(pacman -Qdtq)" || true
|
2020-04-22 18:53:32 +02:00
|
|
|
RUN bsdtar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE \
|
2020-04-22 17:49:44 +02:00
|
|
|
&& chmod +x /tmp/hugo \
|
|
|
|
&& mkdir -pv /usr/local/bin \
|
2020-06-02 21:53:31 +02:00
|
|
|
&& mv -v /tmp/hugo /usr/local/bin/
|
2021-03-09 21:37:19 +01:00
|
|
|
RUN pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* \
|
2021-04-22 22:35:03 +02:00
|
|
|
&& rm -rf /usr/share/zoneinfo/* ; \
|
|
|
|
rm -rf /usr/share/i18n/* ;rm -rf /usr/include/* ; \
|
2020-06-02 21:54:51 +02:00
|
|
|
find /. -name "*~" -type f -delete; \
|
2021-04-22 22:35:03 +02:00
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
|
2020-04-22 17:34:04 +02:00
|
|
|
WORKDIR /
|