hugo/Dockerfile
Renovator Bot 79c3abf6cc
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(deps): update dependency gohugoio/hugo to v0.114.0 (#100)
Reviewed-on: docker/hugo#100
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2023-06-23 08:47:16 +02:00

34 lines
1.4 KiB
Docker

FROM thegeeklab/alpine:latest@sha256:6d2ccb08670d7ed249f72a241369cd162ddf7f11eae8a39fe407cdc77b0c5b0c
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
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.114.0}"
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 asciidoctor && \
echo "Installing hugo version '${HUGO_VERSION##v}' ..." && \
curl -SsfL "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"]