FROM thegeeklab/alpine:latest@sha256:4fcb2f72dff0d2199de46f23250b1fab165caccd50c99f332cc6455cacc5b9f8 LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " LABEL org.opencontainers.image.title="Hugo static site generator" LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/hugo" LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/hugo" LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/hugo" ARG BUILD_VERSION # renovate: datasource=github-releases depName=gohugoio/hugo ENV HUGO_VERSION="${BUILD_VERSION:-v0.89.2}" ENV HUGO_ENV=production COPY overlay/ / RUN apk add --update --no-cache --virtual .build-deps tar curl && \ apk add --update --no-cache libc6-compat libstdc++ busybox-suid bash bash-completion git tzdata make && \ echo "Installing hugo version '${HUGO_VERSION##v}' ..." && \ curl -SsL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION##v}_Linux-64bit.tar.gz" | \ tar xz -C /usr/local/bin hugo && \ chmod 755 /usr/local/bin/hugo && \ ln -s /usr/local/bin/hugo /usr/local/bin/hugo-official && \ apk del .build-deps && \ rm -rf /var/cache/apk/* && \ rm -rf /tmp/* && \ rm -rf /root/.cache/ USER root CMD ["help"] ENTRYPOINT ["/usr/local/bin/hugo"]